Warning This API is only a prototype and is not safe or ready for production yet.
NodeJS: 18.12.1
Follow these steps to run this API locally:
Create a free MongoDB database (https://www.mongodb.com/).
Copy nodemon.json from config directory to root directory and replace the values accordingly
cp config/nodemon.json
Run API
npm run startdemon
Install ClaudiaJS if not installed
npm i -g claudia
Create zip file, run from root directory of project:
claudia pack --no-optional-dependencies --output deploy/terraform/cms-api.zip
Go to terraform directory
cd deploy/terraform
Ensure AWS credentials are in your aws profile
Deploy resources to AWS
terraform apply -auto-approve
If deployment is successful, you will get the API url as an output