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
-[Upgrading To The Latest Version](#upgrading-to-the-latest-version)
12
-
-[Component Library Dev Mode](#component-library-dev-mode)
10
+
-[Upgrading To The Latest Version](#upgrading-to-the-latest-version)
11
+
-[Component Library Dev Mode](#component-library-dev-mode)
13
12
-[Exception Handling](#exception-handling)
14
13
-[Linting](#linting)
15
14
-[Testing](#testing)
@@ -55,21 +54,21 @@ _The terms "client" and "provider" are fairly interchangeable in this applicatio
55
54
| SENTRY_PROJECT | No | .env.development | The slug of the Sentry project associated with the Sentry application |
56
55
| SENTRY_URL | No | .env.development | The base URL of the Sentry instance |
57
56
58
-
####Creating the marketplace app
57
+
### Creating the marketplace app
59
58
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._
60
59
- Once you've clicked the "Applications" link mentioned above, press "New Application"
61
60
- Only the application name is required for the moment. Name it the same as the provider name.
62
61
- Save, and you should be redirected to the "Developer Details" page
63
62
- There will be a button that says "Reveal Token"
64
63
- Click it. You'll need that token in the next step.
65
64
66
-
####Provider ID
65
+
### Provider ID
67
66
In an API GUI (e.g. Postman) make a GET request for `<marketplace>/api/v2/providers.json?q=${PROVIDER_NAME}`. Your authorization will be your token from the step above, formatted as a Bearer Token. e.g. `Bearer MY_TOKEN` Scroll to the `provider_refs` array and use the `provider_id` value to fill in the `NEXT_PUBLIC_PROVIDER_ID` variable.
68
67
69
-
####Authentication
68
+
### Authentication
70
69
All API endpoints in this app require some form of authentication. A logged out user will be able to access the home and browse pages using a provider credential, while a logged in user can access all pages using their own credentials.
71
70
72
-
#####Provider Credentials
71
+
#### Provider Credentials
73
72
Please run the following in your terminal:
74
73
```bash
75
74
# When replacing the variables below with your actual values,
@@ -85,7 +84,7 @@ The curl command will return a JSON object that has an `access_token` property.
85
84
## Webstore Component Library
86
85
The webstore requires a [React component library](https://reactjs.org/docs/react-component.html) of view components. That dependency is packaged and released independently.
87
86
88
-
####Upgrading To The Latest Version
87
+
### Upgrading To The Latest Version
89
88
In the terminal:
90
89
```bash
91
90
# first check for whether there is an updated version
Using the local github repository requires you to manually clone the component library to your computer, build, and link it:
100
99
101
-
#####Preparing your local copy of the component library:
100
+
#### Preparing your local copy of the component library:
102
101
_Prerequisite: clone the [webstore-component-library](https://github.com/scientist-softserv/webstore-component-library.git) and [get the app running](https://github.com/scientist-softserv/webstore-component-library#running-the-app)_
103
102
104
103
cd webstore-component-library
@@ -109,15 +108,15 @@ Choose one of the below:
109
108
npm run build-lib # must be run every time you want a change to show in the webstore
110
109
npm run watch-lib # run once and the wcl will watch for changes
111
110
112
-
#####Preparing your local copy of the webstore:
111
+
#### Preparing your local copy of the webstore:
113
112
114
113
# run in a separate terminal window than where the wcl is
115
114
cd webstore
116
115
yarn link "@scientist-softserv/webstore-component-library"
We are currently using [Vercel](www.vercel.com) to auto deploy this app to our staging environment. The `main` branch is accessible at https://webstore-staging.vercel.app.
207
+
Refer to the [Wiki](https://github.com/scientist-softserv/webstore/wiki/Deployment) for the most updated information.
0 commit comments