Laravel site for Project Nisei
  • HTML 84.1%
  • PHP 8.1%
  • Blade 7.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mike fce7133f24
Merge pull request #12 from x3N1GM4x/master
Included views as discussed with Mike P
2018-11-26 21:46:00 +00:00
app Included views as discussed with Mike P 2018-11-20 13:06:38 +00:00
bootstrap Initial commit 2018-10-12 21:46:33 +01:00
config Included views as discussed with Mike P 2018-11-20 13:06:38 +00:00
database Add expires on to events and show on listing 2018-10-25 21:43:48 +01:00
public Ran pngcrush again with slower options 2018-11-25 09:49:12 -07:00
resources Merge pull request #12 from x3N1GM4x/master 2018-11-26 21:46:00 +00:00
routes add page for formats and details for standard 2018-11-17 18:46:55 +00:00
storage Initial commit 2018-10-12 21:46:33 +01:00
tests Initial commit 2018-10-12 21:46:33 +01:00
.editorconfig Initial commit 2018-10-12 21:46:33 +01:00
.env.example Restore .env.example 2018-11-19 12:40:03 +00:00
.gitattributes Initial commit 2018-10-12 21:46:33 +01:00
.gitignore Add built css and js to gitignore 2018-10-27 15:39:19 +01:00
artisan Initial commit 2018-10-12 21:46:33 +01:00
composer.json Add article rss feed 2018-11-11 14:53:40 +00:00
composer.lock Add article rss feed 2018-11-11 14:53:40 +00:00
package-lock.json finish COC and add css for quote 2018-10-27 13:18:03 +01:00
package.json Init masonry post imageload 2018-11-10 16:59:45 +00:00
phpunit.xml Initial commit 2018-10-12 21:46:33 +01:00
README.md Add command to run webpack 2018-11-24 15:10:22 -07:00
server.php Initial commit 2018-10-12 21:46:33 +01:00
Vagrantfile 😏😏😏😏 2018-03-03 19:32:24 -05:00
webpack.config.js Set up node, sass and rebuild nav 2018-10-13 15:50:18 +01:00
webpack.mix.js Initial commit 2018-10-12 21:46:33 +01:00

Project NISEI Site

The Project NISEI site has been built in Laravel 5.5 and the core project code was generated using QuickAdminPanel.

To set the site up in a dev environment you will need a full LAMP stack set up, if you don't already have this available I'd recommend using Scotch Box, a Vagrant box which should come with everything you need already installed (although any other setup should work fine as long as you can run Laravel). Scotch Box comes with it's own set up instructions to get everything in place (VirtualBox, Vagrant, Scotch itself). Once this stack is fully set up and Vagrant is booted, you should be able to view the scotch box landing page at your local scotch box ip (default: http://192.168.33.10).

This project is built on top of scotch so to get in sync you can: git remote rm origin git remote add origin [[this repo]] git fetch git pull origin master

From there you can ssh into Vagrant with vagrant ssh and navigate to /var/www/ which is the web root of the server and reflects the contents of your project folder on your machine. The site is now installed but must be configured to run.

  • Set up .env (as a copy of .env.example) with your local environment details, including database logins that are included in the Scotch Box docs
  • run composer install (this will install a lot of stuff, especially if you haven't got many php packages in cache)
  • run php artisan key:generate
  • run php artisan vendor:publish and select all
  • run php artisan migrate to populate the databases with tables
  • run php artisan db:seed to populate the default user and roles

At this point the site should be functional (although missing styles on the front end). You can proceed to /admin and login with the default user, [email protected] - password to access the back end of the site. To acquire styles and js you can then.

  • run npm install
  • run npm run build:sass
  • run npm run build:js

If you have issues with node-sass at this point, those can potentially be resolved by running npm install --unsafe-perm -g node-sass. Any issues beyond that can be debugged as a group in Slack.

Once everything is up and running, pull requests can be made to the main repo (on a feature branch) and deployed to live once reviewed.