doctrac
PSU document tracking system
Building and running locally
(instructions apply to Ubuntu and Debian systems, adapt instructions to other OS as needed)
-
Install php7, php composer, mysql, git
-
Install package dependencies listed on
package-dependencies.txt
, e.g.
sudo apt install php-domstring php-xml php-mysql
-
Run
composer update
to install php vendor dependencies required by laravel -
Copy the file
.env.example
to.env
-
Edit the file
.env
according to your mysql setup. Particularly, edit the fields DB_DATABASE, DB_USERNAME, and DB_PASSWORD. -
Run
php artisan key:generate
-
Run
php artisan migrate:fresh
-
Run
php artisan serve
Optional dependencies
- install redis-server and laravel-echo-server
- edit
.env
, set BROADCAST_DRIVER and QUEUE_DRIVER to redis - run the worker:
php artisan queue:work
- run the echo server:
laravel-echo-server start