Croptimized is a web application designed to optimize and visualize agricultural crop rotation data using Linear Programming (CPLEX), with a forward-looking design that is quantum-ready. It integrates with an API to process and analyze data, helping in the decision-making process for sustainable agricultural practices.
Before diving into running the application locally, ensure your environment is prepared with the necessary tools and configurations.
Set up the following environment variable in your system to connect to the MongoDB database.
Variable | Default | Purpose |
---|---|---|
MONGO_DB | start-hack | Specifies the target database in MongoDB for the application to use. |
- Ensure you have Node.js installed on your system to handle the project's dependencies and scripts.
- Navigate to your project's root directory before executing the following commands.
Install the necessary dependencies for the frontend:
npm install tailwindcss postcss autoprefixer
Compile and Run CSS To enable styling and auto-reload features, compile and run the CSS in a separate terminal window:
cd src/app/frontend/static
npm run build
Prerequisites
- Docker and docker-compose must be installed on your system.
- Start your Docker client to ensure Docker commands can be executed.
sudo systemctl start docker
To run the FastAPI instance locally with Docker, ensuring your project's root directory is your current working directory:
sudo docker-compose up --build
Created by Soren Little, Jakob Mayer @StartHACK