Adonis API-only version of a customer project management app. Customers have projects. Projects have tasks.
- Install AdonisJS using
npm i -g @adonisjs/cli
- Clone the repository
- Install dependencies using
npm install
- Set up your database server
- Duplicate
.env.example
and rename to.env
then set your environment variables - Run migration with
adonis migration:run
- Run dev server using
nodemon server.js
oradonis serve --dev
- Run postman and start sending requests to endpoints
- List customers
GET localhost:3333/customers
- Retrieve customer
GET localhost:3333/customers/id
- Create customer
POST localhost:3333/customers
- Update customer
PATCH localhost:3333/customers/id
- Delete customer
DELETE localhost:3333/customers/id
FindCustomer
middleware implemented so you don't query database in controller methods (avoiding repitition and controller methods looking bulky)- Model relationships are already defined for Projects and Tasks, just code on!
- List projects of customer
- Retrieve project
- Create project
- Update project
- Delete project
- List tasks in project
- Retrieve task
- Create task
- Update task
- Delete task
- Sublime Text - text editor
- AdonisJS - web framework