A simple CRUD app in React/Redux/Typescript/Rails/Auth0
(Deployed on Heroku: https://si0005hp-alva.herokuapp.com )
You need to activate Auth0 account and configure spa/React as the app requires it.
$ foreman start -f Procfile.dev
$ yarn postinstall && rails s -p 5000
- Create app
$ heroku create <HEROKU_APP_NAME>
- Set env vars
$ heroku config:set \
AUTH0_CLIENT_ID=<YOUR_CLIENT_ID> \
AUTH0_JWKS=https://<YOUR_TENANT_NAME>.auth0.com/.well-known/jwks.json \
REACT_APP_AUTH0_CLIENTID=<YOUR_CLIENT_ID> \
REACT_APP_AUTH0_DOMAIN=<YOUR_TENANT_NAME>.auth0.com
- Add nodejs buildpack
$ heroku buildpacks:add --index 1 heroku/nodejs
- Deploy app
$ git push heroku master
- migrate DB
$ heroku run rails db:migrate
- Allow Web Origins and Callback URLs on Auth0 settings
Configure above on heroku dashboard.