Skip to content

Latest commit

 

History

History
120 lines (78 loc) · 3.04 KB

README.md

File metadata and controls

120 lines (78 loc) · 3.04 KB

WITS (Weber Inventory Tracking System)

Dependencies Setup Laravel Start Laravel

Dependencies

Docker Docs PHP 7 Docs Composer Docs Node Downloads
Win Installer WAMP Installer Installer (64)
Mac Installer Pre-installed Use Docs Installer (64)
Linux Docs LAMP Docs Use Docs Installer (64)

Database Schema

https://www.lucidchart.com/documents/edit/6fe7035c-4ede-416a-844d-46168be1a34b

Got everything? Let's do a quick check.

docker -v && php -v && composer -V && node -v && npm -v

Clone Project

Window Users: you might need to put this in [User Profile]/sites directory because docker & windows are still trying to work with each other :)

Something like this: git clone [email protected]:WSUWITTS/WITS.git %UserProfile%/sites/wits

cd %UserProfile%/sites/wits (Root level of the project)

Setup Laravel

composer install
npm install

Copy a new .env from .env.example. This is where you put any Settings/Passwords/Keys

cp .env.example .env
php artisan app:setup

Start Laravel

docker-compose up
npm run watch

Project Life cycle

  • git commit
  • wits.weber.edu (wits project)
    • wits/pipelines (gitlab-ci.yml) (all the automation)

Dev Machine

ssh wits-dev.weber.edu
  • remember duo (for sudo, living the dream)
sudo docker exec -it wits_web_1 bash

Production Machine

ssh wits.weber.edu
  • remember duo (for sudo, living the dream)
sudo docker exec -it opt_web_1 bash

Reset Prod Database and reseed (Should only be done for setup)

php artisan migrate:refresh --seeder=ProdDatabaseSeeder

Add User and Role

php artisan tinker
$user = \App\User::find(1);
$user->assignRole(['admin']);