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
+15-10Lines changed: 15 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
1
# Webstore (a.k.a. Digital Storefront)
2
2
3
3
-[Getting Started](#getting-started)
4
+
-[Creating New Pages](#creating-new-pages)
4
5
-[Environment Variables](#environment-variables)
5
-
-[Creating the marketplace app](#creating-the-marketplace-app)
6
+
-[Creating The Marketplace App](#creating-the-marketplace-app)
6
7
-[Provider ID](#provider-id)
7
8
-[Authentication](#authentication)
8
9
-[Provider Credentials](#provider-credentials)
@@ -14,20 +15,24 @@
14
15
-[Testing](#testing)
15
16
-[Jest](#jest)
16
17
-[Cypress](#cypress)
17
-
-[Setup your Cypress env variables](#setup-your-cypress-env-variables)
18
+
-[Cypress ENV Variables](#cypress-env-variables)
18
19
-[Deployment](#deployment)
19
20
20
21
---
21
22
22
23
## Getting Started
23
24
24
25
1. Confirm that your local node version is compliant with the node engine in the package.json
26
+
- If it isn't compliant, update it. (e.g., use [Node Version Manager](https://github.com/nvm-sh/nvm))
25
27
2.`yarn` to install automatic dependencies
26
-
3.`yarn dev` to boot this app as a server
27
-
- Open [http://localhost:3000](http://localhost:3000) with your browser to see the result
28
-
4. Create pages by adding them to the `pages` directory
29
-
- Reference [this documentation](https://nextjs.org/docs/basic-features/pages) for more info about pages
30
-
- The page auto-updates as you edit the file, although there may be a few seconds delay
28
+
3. Configure your [environment variables](https://github.com/scientist-softserv/webstore/wiki/Environment-Variables)
29
+
4.`yarn dev` to boot this app as a server
30
+
- Once the logs show that the client and server have been successfully compiled, open [http://localhost:3000](http://localhost:3000) in your browser to see the result
31
+
32
+
### Creating New Pages
33
+
Create pages by adding them to the `pages` directory.
34
+
- Reference [this documentation](https://nextjs.org/docs/basic-features/pages) for more info about pages
35
+
- The page auto-updates as you edit the file, although there may be a few seconds delay
31
36
32
37
<!-- [API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.
33
38
@@ -54,7 +59,7 @@ _The terms "client" and "provider" are fairly interchangeable in this applicatio
54
59
| SENTRY_PROJECT | No | .env.development | The slug of the Sentry project associated with the Sentry application |
55
60
| SENTRY_URL | No | .env.development | The base URL of the Sentry instance |
56
61
57
-
### Creating the marketplace app
62
+
### Creating The Marketplace App
58
63
Ensure that a marketplace, e.g. client-name.scientist.com, has been created by the Scientist.com Professional Services team. Once that exists, an application needs to be created on that marketplace by a developer with the proper permissions. This is how some of the environment variables are created. You'll know if you have the proper developer permissions if once logged in on the client marketplace, you can hover over your avatar and see "Applications" underneath the "Developer" settings. _If you don't have the permissions, you need to request them, or ask someone with the permissions to complete the steps below._
59
64
- Once you've clicked the "Applications" link mentioned above, press "New Application"
60
65
- Only the application name is required for the moment. Name it the same as the provider name.
@@ -126,7 +131,7 @@ Choose one of the below:
126
131
## Exception Handling
127
132
The application is configured to use Sentry. Refer to ".env.development.example" for how to find the necessary variables.
128
133
129
-
If any other exception handler is desired, it will require configuration.
134
+
If any other exception handler is desired, it will require additional installation and configuration.
130
135
131
136
## Linting
132
137
```bash
@@ -168,7 +173,7 @@ There are 2 types of Cypress tests, e2e & component.
168
173
169
174
If you are creating an e2e test, it will live in the `cypress/e2e` directory. Component tests will need to be created in a directory called `cypress/component `
170
175
171
-
#### Setup your Cypress env variables
176
+
#### Cypress ENV Variables
172
177
- the Cypress suite requires an environment variable that should be stored in your `.env.development` and not committed to git.
173
178
- TEST_SESSION_COOKIE=
174
179
- to get the value for this variable, open your browser to your running app at `localhost:3000`.
0 commit comments