Skip to content

CSG6Project1/cambodia_geography_api

Repository files navigation

Cambodia Geography API

API Built with Express JS and MongoDB

Image Image

Setup

  • Clone the repository
git clone https://github.com/niptict-g6/cambodia_geography_api.git
  • Create .env file with command cp .env.example .env and replace with your own env variable
NODE_ENV= development
PORT= 5000
MONGO_URI= mongodb+srv://user:password@cluster0.1skee.mongodb.net/database?retryWrites=true&w=majority
HOST= http://localhost:5000
JWT_SECRET= SECRET_KEY
JWT_REFRESH_SECRET= REFRESH_SECRET_KEY
JWT_EMAIL_SECRET= EMAIL_SECRET_KEY
GMAIL_USER= example@gmail.com
GMAIL_PASS= 123456
CLOUD_NAME= example 
CLOUD_API_KEY= 123456789256317
CLOUD_API_SECRET= abc-defghijk

For Cloud API key you can get it on Cloudinary

  • Install dependencies
cd <project_name>
npm install
  • Create a folder call uploads for image uploads
  • Build and run the project
npm run server

Navigate to http://localhost:5000

Authors

Group 4 - CADT's students. See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details