dharmikjethva30 / CRUDAPI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CRUD API

A simple CRUD API where users data can be retrieved, added, updated and deleted. API also has horizontal scaling implemented with Load balancing. For the implementation of the same, Cluster module of Node.js is used.

For storing the user data, here we have use in-memory database. When deployed on multiple instance this in-memory database is made consistent using Inter process communication.

Documentation

Documentation of API

Run Locally

Clone the project

  git clone https://github.com/dharmikjethva30/CRUDAPI.git

Go to the project directory

  cd CRUDAPI

Install dependencies

  npm install

Start the server in development mode

  npm run start:dev

Start the server in Production mode

  npm run start:prod

Start the server in Multiple instance mode (with horizontal scaling and load balancing)

  npm run start:multi

Tech Stack

Server: Node.js, Express.js

Modules: cluster, os, uuid, validator

Devloper Modules: nodemon

πŸš€ About Me

I'm a Backend Node.js Developer...

πŸ”— Links

portfolio linkedin twitter

About


Languages

Language:JavaScript 100.0%