AgroPulse is a Django REST Framework API for agricultural commerce. This guide walks you through cloning the repository, configuring your environment, running database migrations, and starting the development server locally.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/OluwagbeminiyiA/agro_pulse-API/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Python 3.12 or newer
- PostgreSQL (running and accessible)
- Poetry installed globally
Steps
Clone the repository and install dependencies
Clone the repository and use Poetry to install all Python dependencies defined in
pyproject.toml.Create your environment file
AgroPulse reads configuration from a
.env file using python-decouple. Create a .env file in the project root and populate it with your Django, database, email, and Squad credentials.See Configure AgroPulse environment variables for a full list of required variables and a sample .env file.Create a superuser (optional)
Create an admin account to access the Django admin interface at
/admin/.The server runs on
http://localhost:8000 by default. All API endpoints are under /api/.Makefile shortcuts
The repository includes aMakefile with convenience targets. Run these from the project root:
| Command | Description |
|---|---|
make run-server | Start the development server |
make lint | Run pre-commit hooks across all files |
make migrations | Generate new migration files (makemigrations) |
make migrate | Apply pending migrations |
make test | Run the test suite |