Giter Site home page Giter Site logo

connecteev / laravel-blog-built-on-cnvs Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 3.39 MB

A fully-functional & foolproof Laravel Blog + Publishing Platform built on https://github.com/cnvs/canvas

PHP 70.06% Vue 0.39% HTML 29.54%
laravel blog cms cms-framework canvas cnvs laravel5 laravel-application zero-configuration easy-setup

laravel-blog-built-on-cnvs's Introduction


Introduction

A Laravel publishing platform but on Canvas, a fully open source package to extend your application and get you up-and-running with a blog in just a few minutes. In addition to a distraction-free writing experience, you can view monthly trends on your content, get insights into reader traffic and more!

Quick and easy Installation

  1. Run
git clone https://github.com/connecteev/laravel-blog-built-on-cnvs.git
  1. Modify .env with your DB settings:
DB_DATABASE=laravel-blog-built-on-cnvs
DB_USERNAME=root
DB_PASSWORD=root
  1. Run:
php artisan migrate
php artisan db:seed
php artisan storage:link

NOTE: You do NOT need to run these steps (from the cnvs documentation: https://github.com/cnvs/canvas):

composer require cnvs/canvas
php artisan make:auth (this has been run and creates the admin user)
php artisan canvas:install (has been run)
php artisan canvas:setup
  1. (Optional) To seed with Fake data (1 fake admin user, fake posts, tags, topics, etc.), run:
composer dump-autoload
php artisan db:seed --class=CnvsFakeDataSeeder

Note that this is NOT run by default when you run php artisan db:seed

  1. Run php artisan serve

  2. (Optional) If you haven't used the seeder (see above) to create an admin user yet, you should do that now. Navigate your browser to /register to create an admin user. Then go to /login and log in to the CMS / Admin dashboard using your admin username and password (or username and password: [email protected] / admin1234 if you used the seeder)

  3. Navigate your browser to /blog to see the Blog's front-end.

Optional Configuration

Note: The following steps are optional configurations, you are not required to complete them.

Want to get started fast? Just run php artisan canvas:setup after installing Canvas. Then, navigate your browser to http://your-app.test/blog or any other URL that is assigned to your application. This command scaffolds a default frontend for your entire blog!

If you want to include Unsplash images in your post content, set up a new application at https://unsplash.com/oauth/applications. Grab your access key and update config/canvas.php:

'unsplash' => [
    'access_key' => env('CANVAS_UNSPLASH_ACCESS_KEY'),
],

Want a weekly summary? Canvas provides support for a weekly e-mail that gives you quick stats of the content you've authored, delivered straight to your inbox. Once your application is configured for sending mail, update config/canvas.php:

'mail' => [
    'enabled' => env('CANVAS_MAIL_ENABLED', false),
],

Since the weekly digest runs on Laravel's Scheduler, you'll need to add the following cron entry to your server:

* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1

Updates

You may update your Canvas installation using composer:

composer update

Run any new migrations using the migrate Artisan command:

php artisan migrate

Re-publish the assets using the canvas:publish Artisan command:

php artisan canvas:publish

Testing

Run the tests with:

composer test

laravel-blog-built-on-cnvs's People

Contributors

connecteev avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.