npm install
npm run dev
npx prisma migrate dev --name [name]
Docker needs to be running for this
heroku login
heroku container:login
heroku container:push web --app choresbackend
heroku container:release web --app choresbackend
docker build . -t choresbackend/cra-docker
- Make sure to have the passphrase securely stored.
- Data in db will be lost if passphrase is lost.
openssl genpkey -algorithm RSA -aes256 -out config/jwt/private.pem
openssl rsa -in config/jwt/private.pem -pubout -outform PEM -out config/jwt/public.pem
When changes have been made to prisma schema run:
npm run generate:prisma-schema