alecuba16 / albelli_test

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Apache License 2.0


Languages

Language:PHP 67.9%Language:JavaScript 29.7%Language:HTML 0.7%Language:Shell 0.5%Language:Dockerfile 0.5%Language:CSS 0.4%Language:Blade 0.2%