Express & TypeScript Starter Kit with MongoDB
MIT License
This is a starter kit for building APIs with Express and TypeScript. It includes a basic setup with MongoDB for data storage, along with commonly used middlewares, error handling, and structured project architecture.
Clone the repository:
git clone https://github.com/yourusername/express-typescript-starter.git
Navigate to the project directory:
cd express-typescript-starter
Install the dependencies:
npm install
Create a .env file by copying the .env.sample:
cp .env.sample .env.production # development & test
Update the .env file with your configuration settings.
To start the server, run:
npm run start
For development mode with auto-reloading, run:
npm run dev
To run the tests, use:
npm test