Skip to content

A backend transaction challenge to practice 💚

Notifications You must be signed in to change notification settings

fkw3t/backend-test

Repository files navigation

backend challenge 💚

setup with docker

generate enviroments file:

cp .env.example .env

# then set your enviroments in .env file
# be careful to keep DB_HOST as 'db', DB_PORT 3306 and DB_USERNAME different than root
# DB_HOST=db
# DB_PORT=3306
# DB_USERNAME=someuser

up containers:

docker-compose build
docker-compose up -d

configs/dependencies:

docker exec app composer install
docker exec app php artisan key:generate
docker exec app php artisan migrate
docker exec app php artisan jwt:secret

# now your application is hosted in http://127.0.0.1:8001 

tests:

docker exec app php artisan test

documentation:

the api docs is provided/generated by swagger: http://127.0.0.1:8001/api/documentation

thanks for reading 💚

About

A backend transaction challenge to practice 💚

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages