Environment Variables
To configure and run the application, you need to set the following environment variables. The variables are divided into three sections corresponding to different parts of the project: server, client (frontend), and root directory.
Server Variables (server
)
Variable Name | Description | Default Value |
---|
MONGO_URI | MongoDB database URI | mongodb://localhost:27017/app |
BASE_URL | Base URL of the application | http://localhost:3000 |
PORT | Port on which the application runs | 3000 |
AWS_ACCESS_KEY_ID | AWS access key ID | your-access-key-id |
AWS_SECRET_ACCESS_KEY | AWS secret access key | your-secret-access-key |
AWS_REGION | AWS region | us-east-1 |
AWS_BUCKET_NAME | AWS S3 bucket name | your-bucket-name |
S3_EMAIL_TEMPLATES_PATH | Path to email templates in AWS S3 | templates/emails |
SES_SENDER_EMAIL | SES sender email address | noreply@example.com |
Client Variables (client
)
Variable Name | Description | Default Value |
---|
userPoolId | User pool ID | your-user-pool-id |
userPoolWebClientId | User pool web client ID | your-web-client-id |
Root Directory Variables
Variable Name | Description | Default Value |
---|
MONGO_URI | MongoDB database URI | mongodb://localhost:27017/app |
NODE_ENV | Specifies the application's runtime environment | development |
Ensure these variables are appropriately set in your environment before running the application.