Skip to content

HRTools API - backend part of HRTools application. The application allows you to effectively manage employees, collect information about them, conduct surveys, manage vacations and sick days.

Notifications You must be signed in to change notification settings

yevhen-turovets-uitf/hrtools-api

Repository files navigation

HRTools | Backend

Technologies

Install

The following sections describe dockerized environment.

Just keep versions of installed software to be consistent with the team and production environment (see Pre-requisites section).

Set your .env vars:

cp .env.example .env

Emails processing .env settings (you can use mailtrap or your smtp credentials like user@gmail.com):

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_USERNAME=<mailtrap_key>
MAIL_PASSWORD=<mailtrap_password>
MAIL_PORT=587
MAIL_FROM_ADDRESS=admin@thread.com
MAIL_FROM_NAME="BSA Thread Admin"

Start application docker containers:

docker-compose up -d

Install composer dependencies and generate app key:

docker exec -it hrtools-app composer install
docker exec -it hrtools-app php artisan key:generate
docker exec -it hrtools-app php artisan jwt:secret

Database migrations install (set proper .env vars)

docker exec -it hrtools-app php artisan migrate
docker exec -it hrtools-app php artisan db:seed

Application server should be ready on http://localhost:<APP_PORT>

For work Laravel

If you need laravel queue, you must run this command:

docker-compose exec app php artisan queue:work beanstalkd

Laravel IDE Helper

For ease of development, you can run the data generation function for the Laravel IDE Helper.

php artisan ide-helper:generate
php artisan ide-helper:models -N
php artisan ide-helper:meta

Debugging

To debug the application we highly recommend you to use xDebug, it is already pre-installed in dockerized environment, but you should setup your IDE.

You can debug your app with Telescope tool which is installed already

About

HRTools API - backend part of HRTools application. The application allows you to effectively manage employees, collect information about them, conduct surveys, manage vacations and sick days.

Topics

Resources

Stars

Watchers

Forks

Languages