Skip to content

Node.js REST API Example: CRUD user with authentication using Node.js, TypeScript, Express, Jest, Mongoose, and Swagger

Notifications You must be signed in to change notification settings

eduardofranca1/nodejs-rest-api-crud-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node REST API

Crud API using Node.js, Express, Mongoose, TypeScript and Jest

This is a simple example of CRUD (Create, Read, Update, and Delete) user operations.

Technologies:

Features

  • Unit Tests using Jest

  • API Documentation using Swagger

  • Authentication using Json Web Token (JWT)

  • Data Validation using Zod

  • Encrypt password using BcryptJS

  • CRUD User

  • Soft Delete

  • Next steps:

    • Add Docker
    • Tests for MongoDB
    • Middlewares
      • Error Handling
      • Authorization
      • Logger

How to run the project

  • npm install (to install node modules)
  • npm run dev (to start the server)
  • npm run test (to run the tests)
  • npm run build (to build the project)

About

Node.js REST API Example: CRUD user with authentication using Node.js, TypeScript, Express, Jest, Mongoose, and Swagger

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published