Skip to content

dwoodard/wits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 git@github.com: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']);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published