Skip to content

This repository provides a basic boilerplate for creating a TypeScript project using the Express framework.

Notifications You must be signed in to change notification settings

BishalDali/Express-Typescript-Boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express-TypeScript-Boilerplate

This repository provides a basic boilerplate for creating a TypeScript project using the Express framework.

Features

  • Express server with TypeScript support
  • Logging middleware using Morgan
  • Example routes and controllers
  • Environment variable configuration using dotenv
  • MongoDB connection using Mongoose

Getting Started

Prerequisites

  • Node.js (v14 or higher)
  • npm

Installation

  1. Clone this repository:

    git clone https://github.com/BishalDali/Express-Typescript-Boilerplate.git
  2. Install dependencies:

    npm install
  3. Create a .env file in the root directory and add the following environment variables:

    PORT=8000
    MONGO_URI=mongodb://localhost:27017/database
  4. Run the server:

    npm run dev

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This repository provides a basic boilerplate for creating a TypeScript project using the Express framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published