Source code for projects.jonathanbell.ca
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bootstrap
config
database
docker
public
resources
routes
storage
tests
.dockerignore
.editorconfig
.env.example
.gitattributes
.gitignore
.prettierrc
Dockerfile
LICENCE
Procfile
README.md
artisan
composer.json
composer.lock
heroku-config.py
now.json
package-lock.json
package.json
phpunit.xml
server.php
webpack.mix.js

README.md

projects.jonathanbell.ca

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.

Dev installation

  1. Clone or download this repository.
  2. cp .env.example .env
  3. Set your MySQL database credentials in .env
  4. Set your email service provider credentials in .env
  5. composer install
  6. php artisan migrate will create (empty) DB tables or php artisan migrate:fresh will delete existing tables and then recreate them.
  7. Create your first user with: php artisan tinker
    1. App\User::create(['email'=>'youremail@email.com', 'password'=>bcrypt('your_password'), 'name'=>'Your Name']); will create your first user
    2. exit (to leave tinker)
  8. npm install will download Webpack and other good things from NPM.
  9. npm run dev will compile the JS and SCSS for the first time.
  10. php artisan serve to run the development server.

Use 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.

Deployment

There is an npm script inside package.json. Assuming you have npm and 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 python heroku-config.py