Skip to content

Commit 3b15813

Browse files
authored
Merge pull request #355 from scientist-softserv/better-readme-v3
better-readme-v3
2 parents 37c3520 + fda3524 commit 3b15813

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

README.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Webstore (a.k.a. Digital Storefront)
22

33
- [Getting Started](#getting-started)
4+
- [Creating New Pages](#creating-new-pages)
45
- [Environment Variables](#environment-variables)
5-
- [Creating the marketplace app](#creating-the-marketplace-app)
6+
- [Creating The Marketplace App](#creating-the-marketplace-app)
67
- [Provider ID](#provider-id)
78
- [Authentication](#authentication)
89
- [Provider Credentials](#provider-credentials)
@@ -14,20 +15,24 @@
1415
- [Testing](#testing)
1516
- [Jest](#jest)
1617
- [Cypress](#cypress)
17-
- [Setup your Cypress env variables](#setup-your-cypress-env-variables)
18+
- [Cypress ENV Variables](#cypress-env-variables)
1819
- [Deployment](#deployment)
1920

2021
---
2122

2223
## Getting Started
2324

2425
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))
2527
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
3136

3237
<!-- [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`.
3338
@@ -54,7 +59,7 @@ _The terms "client" and "provider" are fairly interchangeable in this applicatio
5459
| SENTRY_PROJECT | No | .env.development | The slug of the Sentry project associated with the Sentry application |
5560
| SENTRY_URL | No | .env.development | The base URL of the Sentry instance |
5661

57-
### Creating the marketplace app
62+
### Creating The Marketplace App
5863
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._
5964
- Once you've clicked the "Applications" link mentioned above, press "New Application"
6065
- 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:
126131
## Exception Handling
127132
The application is configured to use Sentry. Refer to ".env.development.example" for how to find the necessary variables.
128133

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.
130135

131136
## Linting
132137
``` bash
@@ -168,7 +173,7 @@ There are 2 types of Cypress tests, e2e & component.
168173

169174
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 `
170175

171-
#### Setup your Cypress env variables
176+
#### Cypress ENV Variables
172177
- the Cypress suite requires an environment variable that should be stored in your `.env.development` and not committed to git.
173178
- TEST_SESSION_COOKIE=
174179
- to get the value for this variable, open your browser to your running app at `localhost:3000`.

0 commit comments

Comments
 (0)