This repository provides a basic boilerplate for creating a TypeScript project using the Express framework.
- Express server with TypeScript support
- Logging middleware using Morgan
- Example routes and controllers
- Environment variable configuration using dotenv
- MongoDB connection using Mongoose
- Node.js (v14 or higher)
- npm
-
Clone this repository:
git clone https://github.com/BishalDali/Express-Typescript-Boilerplate.git
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory and add the following environment variables:PORT=8000 MONGO_URI=mongodb://localhost:27017/database
-
Run the server:
npm run dev
This project is licensed under the MIT License - see the LICENSE file for details.