This is a minimal boilerplate for messing with Express and Typescript. Both frontend and backend live reload.
Ngrok is thrown in too, in case you want to use it for some reason (e.g. testing webhooks).
- Install dependencies with
yarn
ornpm
. - Secondly, rename the
example.env
file to.env
and fill in the desired port. - Run the app with one of the two following commands:
npm run watch
oryarn watch
to run the app with live reload.npm run build && npm start
oryarn build && yarn start
to run the app without live reload.
- If you want to use ngrok, run
npm run ngrok
oryarn ngrok
in a separate terminal.