A progressive Node.js framework for building efficient and scalable server-side applications.
- ProsgresSQL
- Postman
- Nest JS
- Typescript
- Swagger.io
Nest framework TypeScript starter repository.
$ npm installNest documentation.
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prodNestJS app with Express, Prisma and nestjs-prisma.
# Adjust prisma/schema.prisma and perform a migration:
$ npx prisma migrate dev
# Seed the example database:
$ npx prisma db seedBrief :
As a Backend Developer you are required to create API a blog.
Please create API same as those contained in the API address https://gorest.co.in
Feature to develop : CRUD (Create Read Update Delete) Posts
Endpoint : https://gorest.co.in/public/v2/posts
Example Request for POST/PUT/PATCH:
{
"title": "ini judul blog",
"body": "ini isi dari postingan blog"
},Acceptance Criteria :
- User can view list of posts
- user can view detail of posts
- user can create new post
- user can update post
- user can delete post
Feature to develop : CRUD (Create Read Update Delete) Comments
Endpoint : https://gorest.co.in/public/v2/posts/{id_posts}/comments
Example Request for POST/PUT/PATCH
{
"name": "Cahyadi",
"email": "cahyadi@utdi.ac.id",
"body": "Postingannya keren sekali."
},Acceptance Criteria :
- User can view list of comments in post page
- user can create new comment
- user can update comment
- user can delete comment
Feature to develop : CRUD (Create Read Update Delete) Users
Endpoint : https://gorest.co.in/public/v2/users
Example Request for POST/PUT/PATCH
{
"name": "Madoa",
"email": "Madoa@utdi.ac.id",
"gender": "male",
"status": "active"
},Acceptance Criteria :
- User can view list of users
- user can view detail of users
- user can create new users
- user can update users
- user can delete users
Feature to develop : CRUD (Create Read Update Delete) Todo Lists
Endpoint : https://gorest.co.in/public/v2/todos
Example Request for POST/PUT/PATCH
{
"title": "Makan Pagi",
"due_on": "2024-02-17T00:00:00.000+05:30",
"status": "pending"
},Acceptance Criteria :
- User can view list of todo
- user can view detail of todo
- user can create new todo
- user can update todo
- user can delete todo