Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rsdiaz/typescript-express-api-template

🌍✅ TypeScript Express API Template: Bootstrap your new HTTP API backend with TypeScript and Express
https://github.com/rsdiaz/typescript-express-api-template

api api-rest backend eslint express expressjs husky jest node-js nodejs prettier supertest template ts typescript

Last synced: about 1 month ago
JSON representation

🌍✅ TypeScript Express API Template: Bootstrap your new HTTP API backend with TypeScript and Express

Awesome Lists containing this project

README

        

# TypeScript Express API Template
This is a template for starting a Express API project in TypeScript

## Features
- **TypeScript**: [typescriptlang.org](https://www.typescriptlang.org/)
- **ts-node-dev**: [npmjs.com/package/ts-node-dev](https://www.npmjs.com/package/ts-node-dev)
- **ESLint**: [eslint.org](https://eslint.org/)
- **Prettier**: [prettier.io](https://prettier.io/)
- **Jest**: [jestjs.io](https://jestjs.io/)
- **Supertest**: [npmjs.com/package/supertest](https://www.npmjs.com/package/supertest)
- **Husky**: [typicode.github.io/husky](https://typicode.github.io/husky/)

## Start development
```
# Install dependencies
npm install

# Run in dev mode
npm run dev

# Generate production build
npm run build

# Run in production mode
npm run start
```

## Linting

```
npm run build:lint
```

## Testing
Jest with supertest for testing API
```
npm run test
```