This project is the frontend part of the Farmer Ordering System developed using React.js, Redux, Vite.js, and TypeScript. The system allows farmers to order fertilizers and seeds based on their land size. The following sections provide information on how to set up the project and get started.
Make sure you have the following software installed on your machine:
- Node.js (version >= 12)
- Yarn or npm package manager
To get started with the Farmer Ordering System, follow these steps:
-
Clone the repository:
git clone https://github.com/nicele08/farmflow-frontend.git
-
Install the dependencies:
cd farmflow-frontend
yarn install
-
Create a
.env.local
file in the root directory of the project and add the following environment variables:REACT_APP_API_URL="http://localhost:[BACKEND_PORT]/api"
-
Start the server:
yarn dev
-
Open your browser and navigate to
http://localhost:[PORT]
to view the Swagger documentation.
- TypeScript:Typed superset of JavaScript that compiles to plain JavaScript.
- React.js: A JavaScript library for building user interfaces.
- Redux: A Predictable State Container for JS Apps.
- Vite.js: A fast and lightweight development server and build tool.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.