- Clone this repo
- Run
npm install
command inside the project - For development run
npm run start:dev
- For production run
npm run start
The most basic project you can create using Node.js and Express.js or Nest.js is a simple REST API.
For this purpose, I’d like to suggest you build a book directory, where you would need to create endpoints, using the four most basic methods: GET, POST, PUT and DELETE.
You’d use GET for getting all books or getting only one book by id. With the POST method, you can add a new book to the list. You’d need the PUT method for updating the existing book, and it’s evident that with the DELETE method, you will remove the book from the list.
For this kind of application, you don’t have to use the database, and for the first app, you can start with data collected as a JSON file.
This repository is used for Practicing nodejs projects mentioned in this Duomly video to refresh about Nodejs