austintoddj / Canvas
- вторник, 5 июля 2016 г. в 03:12:36
 
PHP
Minimal Blogging Application For Developers.
Canvas is a minimal blogging application for developers. It attempts to make blogging simple and enjoyable by utilizing the latest technologies and keeping the administration as simple as possible with the primary focus on writing.
Canvas has a few system requirements:
Getting Canvas up and running is simple. You can choose either of the following installation options:
Option 1 - Use Composer:
composer create-project austintoddj/canvasOption 2 - Download the repository:
git clone https://github.com/austintoddj/canvas.gitIf you chose Option 1, skip this step. If you chose Option 2, run the following command from the project root:
composer installMake sure to modify the permissions of the storage directory:
sudo chmod o+w -R storageTo enable uploads on the site, give ownership of the uploads directory to the web server:
sudo chown -R www-data:www-data public/uploadsYou will need to create a new .env file and fill in the necessary variables:
cat .env.example > .env; vim .env;Generate a key for your application:
php artisan key:generateOpen up Canvas/config/blog.php and define a few configuration options for your blog.
Note: The 'title' of your blog is used as the domain to create the default user email.
| Data Key | Value | 
|---|---|
| Login Email | admin@canvas.com(default) | 
| Login Password | password(default) | 
When you first set up Canvas, you may want to change the default user information right away. To update user information including setting a new password (Recommended), edit the file Canvas/database/seeds/UsersTableSeeder.php and save it. Make sure to re-run migrations and seeds if you have already run them.
Run the database migrations:
php artisan migrate --seedAdding or modifying styles with Canvas is a breeze. None of this needs to be done out of the box, it simply works on its own. But if you're feeling a little creative and want to make it stand out more, follow these steps:
Install the project dependencies via npm:
sudo npm installInstall Gulp globally:
sudo npm install --global gulp-cliAfter you make any modifications to the files in Canvas/resources/assets/less/, run gulp:
gulpTo enable Disqus comments on your blog, you need to have a unique shortname. For more information, check out the Official Documentation.
Once you have registered your site and have a shortname, use it to set the DISQUS_NAME key in your .env file.
Detailed changes for each release are documented in the release notes.
Canvas is open-sourced software licensed under the MIT license.