- Using data scheme implement missing entities
TodoList
andTodoListItems
. - For each entity should be implemented following:
- DB table
- Model
- Controller
- GQL Resolvers and Schemas
- For complete DB structure implementation
src/database/migrations/<timestamp>_init.js
should be changed - Each entity should have complete CRUD (+ count method)
- When finished update
docs/postman.json
Entities related as
User 1:N TodoList 1:N TodoListItem
As a reference you may use TodoList
entity.
Entities consists of
- Interface (graphql - schemas/resolvers)
- Controller - logic part of app's component
- Model - data describing part of app's component
App contains docker-compose.yaml where PostgreSQL image is defined. User and password for DB are defined in docker-compose.yaml To run image use:
docker-compose up -d postgres
npm run dev # run app in development mode. with hot reload
npm run migration:up # apply last DB migration
npm run migration:down # rollback laster DB migration
OpenCrud standard: https://www.opencrud.org/