Skip to content

aceiny/messanger-clone-backend

Repository files navigation

What is This ?

this is a fully funcitonel api that you can use to create a real time messanger clone or any chat app clone

Installation

$ npm install

development

$ npm run start:dev

Deployment

To deploy this project run

  npm run start:prod

API Reference

Signup new user

  POST /auth/signup
Parameter Type
Name string
Username string
Passsword string

Login user

  GET /auth/login
Parameter Type
Username string
Passsword string

Create Chat

  POST /chat  'require auth'
Parameter Type
Name string
IsGroup boolean
ImageUrl string
Participants array

Get all my chats

  Get /chat  'require auth'

Get a single Chat

  Get /chat/:ChatId  'require auth'

Send a new message

  POST /message/:ChatId  'require auth'
Parameter Type
Message string

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

JWT_SECRET

MONGO_URI

About

messanger clone backend built using nest js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published