- Docker
- Docker Compose
- Composer
- Node.js
- NPM
- Php
- Postman
Navigate to the mysql
folder and run the following commands:
docker-compose up -d
or, if you have a Makefile, runmake start
.- A PhpMyAdmin container is also provided to help manage the database.
Navigate to the securityOps
folder (the Laravel folder) and run the following commands:
- Install dependencies:
composer install
- Configure the
.env
file. - Run migrations:
php artisan migrate
- Seed the database:
php artisan db:seed
- Generate the encryption key:
php artisan key:generate
- Start the server:
php artisan serve
optional:php artisan test
Navigate to the securityFront
folder (the client folder) and run the following commands:
- Install dependencies:
npm install
orbun install
is 10x faster :) - Start the development server:
npm run dev
- Configure the
.env
file. - Use the following credentials to log in:
- Email:
test@example.com
- Password:
password
optional:npm run cy:open
to run the Cypress tests the port is hard coded so you may need to update the cypress config file with the right port.
- Email:
The provided .env.example
file contains most of the required configurations, allowing you to set up the system quickly and easily.
optional: There is a postman collection in the root folder that you can use to test the API endpoints.