docker-compose up
For the first time use --build
to build the containers.
Run model migrations :
docker-compose exec api bash -c "./node_modules/.bin/sequelize db:migrate"
Run model seed data:
docker-compose exec api bash -c "./node_modules/.bin/sequelize db:seed:all"
- db (mysql).
- client (ReactJS) port 3000
- api (ExpressJS) port 9000
ExpressJS app:
GET http:https://localhost:9000/tasks
List all Tasks.
GET http:https://localhost:9000/tasks/:id
Task by id.
PUT http:https://localhost:9000/tasks/:id
{status: 'completed|failed'} on pending status.
ReactJS app: a simple app without using redux.
List:
http:https://localhost:3000
List all Tasks, simple table with dynamic sorting options for ASC & DESC ordering and searching.
To sort the table: click on the table head it will dynamicly sort based on the head value and on the api sorting response <th>
Detail:
http:https://localhost:3000/tasks/:id
Task by id (updating status only on pending status), instant view update without refreshing.
A simple detail view with google maps and a mark to fromLocation and on pending status there will be a simple form using formik
to update PUT
the api /tasks/:id
with "completed|failed" status.
Packages used for test: