This is the backend side of a real-time groupal chat app, based on discord, which I made purely as an academical project
Live Demo 👈
Description | Method | URL |
---|---|---|
Register | POST | /api/users/register |
Login | POST | /api/users/login |
Get user | GET | /api/users/user |
Get user groups | GET | /api/users/getGroups |
Description | Method | URL |
---|---|---|
Create | POST | /api/groups/createGroup |
Join | POST | /api/groups/joinGroup |
Get group information | GET | /api/groups/groupData/:id/:jwt |
git clone https://github.com/chrisdadev13/Cordia-API.git
cd Cordia-API
PORT=<The port the server will run on, e.g. 8000>
DB_ADMIN=<Database username>
DB_PASSWORD=<Database password>
DB_NAME=<Database name or direction>
SECRET_TOKEN=<Secret used to sign the session ID cookie>
npm i
npm run start
For users authentication I used JWT tokens which are stored on client side as local storage (accessToken).