Webpack + Typescript + Express + Jest + Chai
$ yarn
A post install script will transpile Typescript code into javascript. Transpiled code can be found at ./dist/server.js
.
Name | Default | Description |
---|---|---|
PORT | 3000 |
PORT on which the server will run |
SIGNUP_STATUS | off |
signup status: off | restricted | on |
ADMIN_TOKEN | null |
ADMIN_TOKEN for signup process |
MONGODB_URI | null |
mandatory mongodb URI |
SECRET_SERVER_KEY | simple-server-key |
key for jwt |
$ yarn test
$ COVERALLS_REPO_TOKEN=XXXX yarn test-ci
You need to add your coveralls repository token, otherwise it will fail.
$ yarn start
This will launch the server as is.
$ yarn pm2
This will launch the server with pm2 instead.
A small Express application written in Typescript and set with Webpack. Tests are done with Jest + Mocha/Chai.
You can find the demo app running at: https://api-skel.herokuapp.com/.
- Pierre Repetto-Andipatin mailto:[email protected]
MIT