Skip to content

Albelli backend (Laravel + swagger) and frontend (React+redux) test

License

Notifications You must be signed in to change notification settings

alecuba16/albelli_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

albelli_test

Albelli backend (Laravel + swagger) and frontend (React+redux) test

Relationship between advertisements and offers.

That relation is many-to-many that can only be broken by using a pivot table, which maps each individual advertisement id with each offer id. In Laravel, it can be done quickly by following the conventions (first advertisements_offers table, etc), then you have to manage the relationship in the store, delete and update methods in order not to have consistency errors.

Run the containers

One command to have the app ready

docker-compose up --build -d frontend

Will run all the required containers (mysql,php,nginx,react build..)

Only backend

docker-compose up --build -d nginx

Ports

Backend api url

localhost:8000/api

Swagger UI url

localhost:8000/api/documentation

Frontend

React application

localhost:8080

Screenshots

Backend

Frontend

About

Albelli backend (Laravel + swagger) and frontend (React+redux) test

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published