dhirajmokal13 / varlyq-API-

This is api which is allows users to CRUD operations for both users and posts for authentications used the jwt and redis cache.

Home Page:https://vast-flannel-nightgown.cyclic.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Posts and users api

To set up project (api)

Step 1: Clone the repositery

git clone https://github.com/dhirajmokal13/varlyq-API-

Step 2: cd into clone repository and run the command

npm install

Step 3: Install mongodb server on machine

Step 4: Install redis Server on machine

Step 5: Make the .env file and add the following data in it (Change data according your usage)

PORT = "3000"
CLIENT_URLS = ["*"]
ALLOWED_METHODS = ["POST", "PUT", "GET", "PATCH", "DELETE"]
DATABASE_URL = ''
JWTKEY = ''
JWTKEYREFRESH = ''
RedisCreddentials = {"password":"","socket":{"host":"","port":"","connect_timeout": 5000}}

Step 6: Run development server using the command

npm run dev

Step 7: According to documentation use the repository

https://documenter.getpostman.com/view/25159036/2s93RUuXjj

About

This is api which is allows users to CRUD operations for both users and posts for authentications used the jwt and redis cache.

https://vast-flannel-nightgown.cyclic.app/


Languages

Language:JavaScript 100.0%