Skip to content

chrisdadev13/Cordia-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cordia API

This is the backend side of a real-time groupal chat app, based on discord, which I made purely as an academical project

Frontend Repository

Live Demo 👈

Endpoints

Users

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

Groups

Description Method URL
Create POST /api/groups/createGroup
Join POST /api/groups/joinGroup
Get group information GET /api/groups/groupData/:id/:jwt

Technologies used

Getting started

Clone repository

git clone https://github.com/chrisdadev13/Cordia-API.git
cd Cordia-API

Set up environment variables

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>

Install packages and start server

npm i
npm run start

Authentication

For users authentication I used JWT tokens which are stored on client side as local storage (accessToken).

About

Groupal real-time chat app based on discord (API)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published