Skip to content
Template for a simple project with node using express in TypeScript.
TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
src
test
.editorconfig
.env.example
.gitignore
.prettierignore
.prettierrc.json
.travis.yml
README.md
package-lock.json
package.json
tsconfig.json
tslint.json

README.md


Description

This is a template repository for projects written in TypeScript for node using express.js framework. Included some important packages:

  • express
  • express-bearer-token
  • mongoose
  • cors
  • dotenv
  • colors
  • helmet
  • morgan
  • source-map-support

Usage

Creating a repository from a template

Use This Template

npm i
npm run dev # for development (watches for file changes)
npm start   # for serving

Structure

├── package.json
├── package-lock.json
├── README.md
├── src
│   ├── config.ts
│   ├── controllers
│   ├── database.ts
│   ├── index.ts
│   ├── middlewares
│   │   ├── errorHandler.ts
│   │   └── index.ts
│   ├── models
│   ├── routes
│   │   └── index.ts
│   ├── server.ts
│   ├── services
│   └── utils
│       ├── APIResponse.ts
│       ├── enumToArray.ts
│       ├── index.ts
│       └── paginationOptions.ts
├── test
│   └── app.test.js
├── tsconfig.json
└── tslint.json
You can’t perform that action at this time.