This demo includes all of the files necessary to get started with a basic, hello world app. This app was built using NextJS, BigDesign, Typescript, and React.
To get the app running locally, follow these instructions:
- Use Node 10+ and NPM 7+
- Install npm packages
npm install
- Use Localtunnel to expose your localhost server to the internet.
- Go to package.json and find the
"lt"
script. Change the subdomain to something that matches your project. Not that you may not get that url if it is in use by someone else so try to come up with a unique name. npm run lt
- Note of the url
- Go to package.json and find the
- Register a draft app.
- For steps 5-7, enter callbacks as
'{localtunnel-url}/api/{auth||load||uninstall}'
. localtunnel-url
is the url you noted in step 3 above.- e.g. auth callback:
https://12345.loca.lt/api/auth
- For steps 5-7, enter callbacks as
- Copy .env-sample to
.env
. - Replace client_id and client_secret in .env (from
View Client ID
in the dev portal). - Update AUTH_CALLBACK in
.env
with thelocaltunnel-url
from step 3. - Enter a jwt secret in
.env
.- JWT key should be at least 32 random characters (256 bits) for HS256
- Specify DB_TYPE in
.env
- If using Firebase, enter your firebase config keys. See Firebase quickstart
- Start your dev environment in a separate terminal from
localtunnel
. Iflocaltunnel
restarts, update callbacks in steps 4 and 7 with the new localtunnel url (if it has changed).npm run dev
- Install the app and launch.