Skip to content

rebazomar121/node-typescript-mongodb-starter

Repository files navigation

Express TypeScript Docker MongoDB Project

This is a brief description or introduction to your Express TypeScript project with Docker and MongoDB integration.

Prerequisites

Before you can run this project, ensure you have the following dependencies installed on your system:

Installation

  1. Clone the repository:
git clone --depth=1 https://github.com/rebazomar121/node-typescript-mongodb-starter your-project-name
cd your-project-name

Install project dependencies:

npm install

Configuration

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

Running on development mode

npm run dev

Running on production mode

npm run build
npm start

Running with Docker

1 - Build the image:

docker build -t your-image-name .

2 - Run the container:

docker run -p 8080:8080 -d your-image-name

Running with Docker Compose

docker-compose up -d

Contact

you can contact me at email or rebaz.dev let me know if you have any questions or suggestions.

About

node-typescript-mongodb-starter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages