A backend service that enables users to make their communities and add members to them.
Language: Typescript
Server: Node, Express
Database: MongoDB with Mongoose
Authentication: JSON-Web-Token used with httpOnly Cookies
Encryption: bcryptJS
Validator: express-validator
To run this project, you need to have the following dependencies installed:
-
Clone the main repository to your local machine.
-
Install the project dependencies using npm:
npm install
Before running the server, you need to set up environment variables. Create a .env file in the root of your project and add the following variables:
PORT=3000
DB_CONNECTION_STRING=your-mongodb-url
AUTH_SEC_KEY=your-secret-key
To start development, run the following command:
npm run dev
To Build the app, run the following command:
npm run build
To start the app, run the following command:
npm run start
The project depends on the following npm packages: