Backend Content of MIHU APP for Bangkit Capstone Project
Base URL :
{}
See Endpoint documentation here :
GCP Infrastructure Design
Database Relational Design
-
Clone this repository to your local machine:
git clone https://github.com/fadhilaf/mihu-be.git
-
Navigate to the project directory:
cd CC-API
-
Install the dependencies:
npm install
before starting running the application, set env file based on your needs:
ACCESS_TOKEN_SECRET = YOUR_ACCESS_TOKEN_SECRET_KEY
REFRESH_TOKEN_SECRET = YOUR_REFRESH_TOKEN_SECRET_KEY
MONGODB_URL = YOUR_LOCAL_CONNECTION_STRING
MONGO_ATLAS_URL = YOUR_CLOUD_BASE_DATABASE_CONNECTION_STRING
PORT = LOCAL_PORT
PROJECT_ID = YOUR_GCP_PROJECT_ID
BUCKET_NAME = YOUR_BUCKET_NAME_GCS
You Must Create a Database First before going to next step.
To start the Express.js server and run the database setup:
# Choose your command :
npm run start
npm run dev