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
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
# Custom Progress Bar Sample App
2
2
3
-
This is a sample application that demonstrates how to create a custom progress bar with your Classy data. It should be used purely as instructional material rather than a production-ready application.
3
+
This is a sample application that demonstrates how to create a custom progress bar with your GoFundMe Pro data. It should be used purely as instructional material rather than a production-ready application.
4
4
5
-
Please refer to Classy's [developer documentation](https://developers.classy.org/overview/welcome) for more information about how to work with our product.
5
+
Please refer to GoFundMe Pro's [developer documentation](https://developers.classy.org/overview/welcome) for more information about how to work with our product.
6
6
7
7
This application shell makes use of a
8
-
[Node backend layer](https://nodejs.org/en) to handle requests between the application and Classy's API as well as a [React frontend](https://react.dev/) to create a Client for the data retrieved from the customer's Classy account.
8
+
[Node backend layer](https://nodejs.org/en) to handle requests between the application and GoFundMe Pro's API as well as a [React frontend](https://react.dev/) to create a Client for the data retrieved from the customer's GoFundMe Pro account.
9
9
10
10
You can find the backend layer in the `/backend` folder (and setup instructions [here](/backend/README.md)) and the frontend part of the application in the `/frontend` folder (and setup instructions [here](/frontend/README.md)).
Sample NodeJS/Express backend to provide a REST API to query the fundraising progress of a Classy campaign.
3
+
Sample NodeJS/Express backend to provide a REST API to query the fundraising progress of a GoFundMe Pro campaign.
4
4
5
-
This project is meant to be a simple example of how to connect to the Classy API, consume information about campaigns and expose it through a REST API. It is not meant to be a full-fledged application, nor to be used in production as-is.
5
+
This project is meant to be a simple example of how to connect to the GoFundMe Pro API, consume information about campaigns and expose it through a REST API. It is not meant to be a full-fledged application, nor to be used in production as-is.
6
6
7
7
## Getting Started
8
8
@@ -14,13 +14,13 @@ This project is meant to be a simple example of how to connect to the Classy API
14
14
15
15
1. Clone the repository
16
16
2. Install dependencies: `npm install`
17
-
3. Copy the `.env.template` file to `.env` and update environment variables as needed. In particular, ensure that `CLASSY_CLIENT_ID` and `CLASSY_CLIENT_SECRET` are set. You can obtain these by creating a new application in the [Classy Developer Portal](https://developer.classy.org/).
17
+
3. Copy the `.env.template` file to `.env` and update environment variables as needed. In particular, ensure that `GO_FUND_ME_PRO_CLIENT_ID` and `GO_FUND_ME_PRO_CLIENT_SECRET` are set. You can obtain these by creating a new application in the [GoFundMe Pro Developer Portal](https://developers.classy.org/).
18
18
4. Start the development server: `npm run dev`
19
19
20
20
## Project description
21
21
22
-
This project is meant as an example of how to consume the Classy APIs.
23
-
It provides a simple REST API with a single endpoint `/campaigns/:id` that returns the fundraising progress of a Classy campaign.
22
+
This project is meant as an example of how to consume the GoFundMe Pro APIs.
23
+
It provides a simple REST API with a single endpoint `/campaigns/:id` that returns the fundraising progress of a GoFundMe Pro campaign.
24
24
25
25
This project can be consumed directly, via an API platform like [Postman](https://www.postman.com/) or through our sample [frontend](../frontend/README.md) project.
26
26
@@ -29,8 +29,8 @@ This project can be consumed directly, via an API platform like [Postman](https:
29
29
This project uses [Express](https://expressjs.com/) to create a simple REST API with two routes defined in the `src/server.ts` file:
30
30
31
31
-`GET /health-check`: A simple health check endpoint that returns a 200 status code if the server is running.
32
-
-`GET /campaigns/:campaignId/progress`: An endpoint that returns the fundraising progress of a Classy campaign.
32
+
-`GET /campaigns/:campaignId/progress`: An endpoint that returns the fundraising progress of a GoFundMe Pro campaign.
33
33
34
34
Each route group is handled by a separate router file inside the `src/api` folder.
35
35
36
-
Within the `src/common/utils/classyAuth.ts` file, you will find the logic to authenticate with the Classy API using the client id and secret.
36
+
Within the `src/common/utils/auth.ts` file, you will find the logic to authenticate with the GoFundMe Pro API using the client id and secret.
0 commit comments