This is the source code for https://projects.jonathanbell.ca/
The site runs on Laravel version 5.6. Feel free to fork/clone in order to use as a basis for your own website, but please change the content.
- Clone or download this repository.
cp .env.example .env
- Set your MySQL database credentials in
- Set your email service provider credentials in
php artisan migratewill create (empty) DB tables or
php artisan migrate:freshwill delete existing tables and then recreate them.
- Create your first user with:
php artisan tinker
App\User::create(['email'=>'firstname.lastname@example.org', 'password'=>bcrypt('your_password'), 'name'=>'Your Name']);will create your first user
npm installwill download Webpack and other good things from NPM.
npm run devwill compile the JS and SCSS for the first time.
php artisan serveto run the development server.
npm run watch while writing SCSS and JS in order to compile on the fly and
npm run prod when you are ready to go to compile SCSS and JS for production.
There is an
npm script inside
package.json. Assuming you have
Node installed, run
npm run deploy which will deploy to Zeit now via Docker or use
git push heroku master (for a Heroku deployment).
If using Heroku, you can upload all of your config (environment) vars with