Skip to content

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Tech Stacks

  • ProsgresSQL
  • Postman
  • Nest JS
  • Typescript
  • Swagger.io

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

Running the app

Nest documentation.

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Prisma

NestJS 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 seed

Exploring Project

Brief :
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

Task 1

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

Task 2

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

Task 3

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

Task 4

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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages