Advanced express.js app in typescript, deployable on heroku 🐓 🐨 🐉 👷
Iterating on previous Hello Worlds:
- https://github.com/Offirmo/hello-world-typescript
- https://github.com/Offirmo/hello-world-heroku
- https://github.com/Offirmo/hello-world-express-typescript
- https://github.com/Offirmo/hello-world-express-typescript-advanced-1
See also those related/expanded Hello Worlds:
References:
- https://github.com/Offirmo-team/wiki/wiki/express.js
- https://expressjs.com/en/4x/api.html
- https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/express/express-tests.ts
This app needs a Redis and a Mongo databases. Suggestion: use the default docker images.
Then provides their url in env vars DB_URL_MONGO_01
and DB_URL_REDIS_01
or through a .env
file, example:
touch .env
echo 'DB_URL_MONGO_01="mongodb://localhost:32773"' >> .env
echo 'DB_URL_REDIS_01="redis://localhost:32774"' >> .env
yarn --production
yarn start
For more readable logs:
npm i bunyan
yarn start | ./node_modules/.bin/bunyan
see CONTRIBUTING.md