This is the backend repository for the ticket management app, essentially a small server running a SQL database and exposing it to the clients via an API for synchonisation.
- Laravel PHP Framework for creating a REST API service
- Sail (Laravel) Docker environment
- Sanctum (Laravel) Authentication (built in)
- git for version control
php artisan
(Laravel CLI) for application building- composer for php dependency management
git clone https://github.com/lsglab/ticket-management-backend
Install dependencies (this gegnerates the missing /vendors
directory)
composer install
Generate a .env
file for your clone of this project by using the example file.
Have artisan generete a unique key and make sure to fill in the missing data in your new config.
cp .env.example .env
php artisan key:generate
Optional shell alias for convenience
alias sail='[ -f sail ] && bash sail || bash vendor/bin/sail'
Build the image and run the containers in detatched mode
sail build && sail up -d
- Docker image deployed in local network or cloudspace