Denis Ouma Otieno
This is a web application that displays the latest sugar prices for various countries. It was built using React and TailwindCSS.
This project was built using the following dependencies:
1. React: A JavaScript library for building user interfaces
2. Axios: A library for making HTTP requests
3. tailwindCSS (styling the application)
View the latest sugar prices for different countries
Filter the results by country
Sort the results by price or date
To run this application on your local machine, follow these steps:
1. Clone this repository to your local machine.
2. Install the dependencies using npm install.
3. Start the development server using npm start.
Open your web browser and navigate to http://localhost:3000.
GET /prices - Retrieves all sugar prices in the database
GET /prices/:country - Retrieves the latest sugar price for a specific country
The API also includes a filter option to allow users to filter sugar prices by country. To use the filter option, make a GET request to /prices with the country query parameter set to the desired country.
Contributions to this project are welcome. To contribute, fork the repository and create a pull request with your changes.