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

https://github.com/ericnishio/express-boilerplate

A modern Express boilerplate for building RESTful APIs in TypeScript.
https://github.com/ericnishio/express-boilerplate

api authentication bcrypt boilerplate docker es2015 es6 express jwt minimal mongodb node rest restful typescript

Last synced: 6 months ago
JSON representation

A modern Express boilerplate for building RESTful APIs in TypeScript.

Awesome Lists containing this project

README

          

# express-boilerplate

[![Known Vulnerabilities](https://snyk.io/test/github/ericnishio/express-boilerplate/master/badge.svg)](https://snyk.io/test/github/ericnishio/express-boilerplate)
[![Build Status](https://api.travis-ci.org/ericnishio/express-boilerplate.svg)](https://travis-ci.org/ericnishio/express-boilerplate)

A modern [Express](https://expressjs.com) boilerplate for building RESTful APIs in TypeScript.

- [TypeScript](https://www.typescriptlang.org/)
- ES6+, async/await, spread syntax, etc.
- [TSLint](https://palantir.github.io/tslint/)
- [JWT](https://jwt.io)-based authentication
- [Mongoose](http://mongoosejs.com)
- [Jest](https://facebook.github.io/jest/)
- [Winston](https://github.com/winstonjs/winston)

Requirements: [Node 6+](https://nodejs.org/en/download/), [Yarn](https://yarnpkg.com/en/docs/install), [Docker](https://www.docker.com)

## Install

```
yarn
cp .env.dev .env
```

## Start dev server

Run the tests once to start the database container:
```
./run-tests.sh
```

Then:
```
yarn start
```

## Build for production

```
yarn build
```

This creates a build in `dist`.

## Run tests

```
./run-tests.sh
```

## License

[MIT](LICENSE.md)