A data-driven React-Django app that delivers a content-based recommendation system responsible for suggesting plant pairings that work well together, such as combining nitrogen fixers with nitrogen feeders and tailored planting tasks with instructions for each suggested crop. It allows users to manage and share farming tasks in topic-specific communities via a WebSocket chat.
- Prerequisites.
- Installation.
- Environment Setup.
- Frontend Setup.
- Docker Setup.
- Running the Application.
- License.
Before you begin, ensure you have the following installed:
- Git
- Python (3.x)
- Node.js
- virtualenv
- Docker
Clone the repository and set up your virtual environment:
- Clone the repository:
git clone https://github.com/Koech01/veg-connect.git
python3 -m venv veg-connect
cd veg-connect- Install dependencies:
source bin/activate
pip install -r requirements.txtConfigure the environment:
- Create an .env file:
touch .env - Generate a Django secret key:
python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'- Open the
.envfile and add the following lines, with your newly generated secret key forSECRET_KEY. Make sure to keep DEBUG=True for local development:
SECRET_KEY=your_generated_secret_key_here
DEBUG=True- Set up the frontend by navigating to the frontend directory and installing dependencies:
cd frontend
npm install
npm run build
cd ..- Make sure Docker is running before starting Redis or other containers:
sudo systemctl start docker
sudo systemctl enable docker
sudo systemctl status docker - For chat functionality, ensure Redis is running:
sudo docker run -d -p 6379:6379 redis Enter your password.
- Start the Django development server:
python manage.py runserver You can now access the application at http://127.0.0.1:8000/.
This project is licensed under the MIT License.