You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,14 +19,15 @@ To get the app running locally, follow these instructions:
19
19
- Get `ngrok_id` from the terminal that's running `ngrok http 3000`.
20
20
- e.g. auth callback: `https://12345.ngrok.io/api/auth`
21
21
5. Copy .env-sample to `.env`.
22
+
- If deploying on Heroku, skip `.env` setup. Instead, enter `env` variables in the Heroku App Dashboard under `Settings -> Config Vars`.
22
23
6.[Replace client_id and client_secret in .env](https://devtools.bigcommerce.com/my/apps) (from `View Client ID` in the dev portal).
23
24
7. Update AUTH_CALLBACK in `.env` with the `ngrok_id` from step 5.
24
25
8. Enter a cookie name, as well as a jwt secret in `.env`.
25
26
- The cookie name should be unique
26
27
- JWT key should be at least 32 random characters (256 bits) for HS256
27
28
9. Specify DB_TYPE in `.env`
28
29
- If using Firebase, enter your firebase config keys. See [Firebase quickstart](https://firebase.google.com/docs/firestore/quickstart)
29
-
- If using MySQL, enter your mysql database config keys (host, database, user/pass and port).
30
+
- If using MySQL, enter your mysql database config keys (host, database, user/pass and optionally port). Note: if using Heroku with ClearDB, the DB should create the necessary `Config Var`, i.e. `CLEARDB_DATABASE_URL`.
30
31
10. Start your dev environment in a **separate** terminal from `ngrok`. If `ngrok` restarts, update callbacks in steps 4 and 7 with the new ngrok_id.
31
32
-`npm run dev`
32
33
11.[Install the app and launch.](https://developer.bigcommerce.com/api-docs/apps/quick-start#install-the-app)
0 commit comments