Sample React frontend to consume the sample backend that provides a REST API to query the fundraising progress of a GoFundMe Pro campaign.
This project is meant to be a simple example using Vite. It is not meant to be a full-fledged application, nor to be used in production as-is.
- Node.js 14+ (it's recommended to use nvm, and if so, you can run
nvm useto switch to the correct Node.JS version)
- Clone the repository
- Install dependencies:
npm install - Copy the
.env.templatefile to.envand update environment variables as needed. In particular, ensure the localhost PORT matches the one you're using to serve the backend in the sample. - Start the development server:
npm run dev
This project is meant to be used in conjunction with the backend project. It provides a simple frontend to consume the backend API and display the fundraising progress of a GoFundMe Pro campaign.
The frontend is a React application bootstrapped using Vite.
The key file which contains the logic is src/App.tsx.
The progress bar is displayed using the CircleGraph component, built using SVG & CSS with basic animations. This file can be ignored if you're only interested in the API consumption logic.