This is a brief description or introduction to your Express TypeScript project with Docker and MongoDB integration.
Before you can run this project, ensure you have the following dependencies installed on your system:
- Clone the repository:
git clone --depth=1 https://github.com/rebazomar121/node-typescript-mongodb-starter your-project-name
cd your-project-name
npm install
You need to create a .env file in the project root directory to configure environment variables. Here's a sample .env file:
DATABASE_URL=mongodb://localhost:27017/express-mongoose-es6-rest-api-test
JWT_SECRET_KEY=jwt-secret
ENCRYPTION_KEY=encryption-key
SMS_DOMAIN=sms-domain
SMS_API_KEY=sms-api-key
PORT=8080
npm run dev
npm run build
npm start
1 - Build the image:
docker build -t your-image-name .
2 - Run the container:
docker run -p 8080:8080 -d your-image-name
docker-compose up -d
you can contact me at email or rebaz.dev let me know if you have any questions or suggestions.