- Windows
Clone the repository and run the Docker deployment script:
npm run docker-deploy
- Run
npm install
- Create a .env file with the following content
SECRET = 1234
Create a .env file to set other parameters as needed.
Add the following parameters to the .env file for Google OAuth 2.0 authentication:
GOOGLE_CLIENT_ID=<your_google_client_id>
GOOGLE_CLIENT_SECRET=<your_google_client_secret>
GOOGLE_OAUTH_REDIRECT_URL=<your_google_oauth_redirect_url>
FRONTEND_URL=<your_frontend_url_after_login_success_will_rediret>
Add the following parameters to the .env file to configure MongoDB, Redis, and the server port:
PORT=<your_port_number>
MONGODB_URI_DOCKER=<your_mongodb_connection_string>
MONGODB_URI_DEV=<your_mongodb_connection_string_for_dev>
MONGODB_NAME=<your_mongodb_database_name>
REDIS_PASSWORD=<your_redis_password>
REDIS_HOST=<your_redis_host>
REDIS_PORT=<your_redis_port>
For API documentation, please refer to the doc.