/hello-world-express-typescript-advanced-2

Advanced express.js app in typescript, serving REST + server-side React, deployable on heroku :rooster: :koala: :dragon: :construction_worker:

Primary LanguageTypeScriptThe UnlicenseUnlicense

hello-world-express-advanced II (with Mongo/Redis)

Advanced express.js app in typescript, deployable on heroku 🐓 🐨 🐉 👷

Introduction

Iterating on previous Hello Worlds:

See also those related/expanded Hello Worlds:

References:

Installation and launch

prerequisites

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

Launch

yarn --production
yarn start

For more readable logs:

npm i bunyan
yarn start | ./node_modules/.bin/bunyan

Contributing

see CONTRIBUTING.md

TOSORT