A simple Books App API using Xpresser and MongoDB.
By default, this should work without an env
file. If you want to change the default values, create a .env
file in the root of the project.
# Create .env file
cp .env.example .env
Then start the app.
# Development
npm run ts-dev
# Debug
npm run ts-dev-debug
# Production
npm run start
You can also run the app using Docker.
The docker-compose file exists in .docker
folder.
cd .docker
# Build the app (only needed once)
docker compose up --build -d
# Run the app
docker compose up -d