A simple contact list application
- docker:19.03.12
- docker-compose:1.17.1
If your OS have support to makefile, you can simply run these two comands:
make backend
make frontend
Being in root directory of this project run:
cd backend
docker-compose run build
docker-compose up backend
Being in root directory of this project run:
cd frontend
docker-compose up build
docker-compose up frontend
These commands will setup all the project (mysql DB, PHP server, frontend). So it may take a while.
Once everything is setup, you can access frontend in http://localhost:8080
Backend is running in http://localhost:9000
and have the following endpoints:
- POST /persons
- GET /persons
- GET /persons/{id}
PS: If you are facing a 500 error at one of these endpoints, it may be because the database has not been raised yet. It takes some minutes