This project is a React-based frontend for the Data Stream App. It showcases a UI for displaying projects and their associated data streams in a paginated manner.
Follow these steps to set up and run the project locally.
Before you begin, ensure you have the following installed on your system:
To get a local copy of the frontend up and running, follow these simple steps.
- Clone the repository:
git clone https://github.com/AYOMITIDE-OAJ/data-stream-app/
After cloning, change your directory to frontend/datastream :
cd data-stream-app/frontend/datastream
- Install dependecies
Next, install the project dependencies using npm or yarn:
Using npm:
npm install
Using yarn:
yarn install
Create a .env file in the root of frontend/datastream to store your environment variables. For example, if you need to connect to a backend server, you might have something like this:
REACT_APP_API_BASE_URL=http://localhost:5000
To run the project, use the following command:
Using npm:
npm start
Or using yarn:
yarn start
This will run the app in the development mode. Open http://localhost:3000to view it in your browser.
To build the app for production to the build folder, use:
Using npm:
npm run build
Or using yarn:
yarn build
This correctly bundles React in production mode and optimizes the build for the best performance. Your app is ready to be deployed!
To learn more about React, check out the React documentation.