Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 953 Bytes

File metadata and controls

37 lines (24 loc) · 953 Bytes

TypeScript Express Starter

Download and install nvm

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

cd into the project directory and run

nvm use

that will install the appropriate version of node as defined in the .nvmrc file

then you can run the following which will enable yarn

corepack enable

and now you can start the extension via

yarn && yarn start

To test locally with docker-compose run

docker-compose -f docker-compose.local.yml up

You could also use the Dockerfile to deploy to production, but it currently requires you have all your secrets in a .env file while you probably want to use a secret store for secrets outside of your local environment

Alternatively you can easily deploy to Heroku. Working procfiles are already provided. Heroku has great guides on deploying node applications so I won't go into further details here.