Skip to content

Unknown-squad/toBeHero-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toBeHero-backend

ToBeHero is a mentorship platform for kids.

API Documentation

here

Local Setup

  1. Install Node.js

  2. Install MongoDB

  3. Install git

  4. Clone the repository

$ git clone https://github.com/Unknown-squad/toBeHero-backend.git
  1. cd to the repository directory
$ cd toBeHero-backend
  1. Install dependencies
$ npm install
  1. Create .env file, and add Environment Variables to it using nano:
$ nano config/config.env
  1. Run the server
$ npm start

Environment Variables

  1. MONGO_URI = mongodb connection url, example: mongodb://localhost:27020/tobehero
  2. SESSION_SECRET = any string secret, example: my secret
  3. SENDMAILER_AUTH_KEY = authentication key of your nodemailer account
  4. SENDER_MAIL = the email that you record it on your nodemailer account as sender, example: info@email.com
  5. CLIENT_DOMAIN = ${the domain of client side}, example: http://localhost:5000
  6. PORT = ${port number that server will running on}, example: 3000

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •