this is a fully funcitonel api that you can use to create a real time messanger clone or any chat app clone
$ npm install
$ npm run start:dev
To deploy this project run
npm run start:prod
POST /auth/signup
Parameter | Type |
---|---|
Name |
string |
Username |
string |
Passsword |
string |
GET /auth/login
Parameter | Type |
---|---|
Username |
string |
Passsword |
string |
POST /chat 'require auth'
Parameter | Type |
---|---|
Name |
string |
IsGroup |
boolean |
ImageUrl |
string |
Participants |
array |
Get /chat 'require auth'
Get /chat/:ChatId 'require auth'
POST /message/:ChatId 'require auth'
Parameter | Type |
---|---|
Message |
string |
To run this project, you will need to add the following environment variables to your .env file
JWT_SECRET
MONGO_URI