AgriLink is a web-based platform connecting farmers and customers directly. The backend utilizes Docker Compose to manage services, including the server, PostgreSQL database, and MinIO bucket.
Before you begin, ensure you have the following installed on your system:
-
Clone the repository:
https://github.com/Safalm74/LF-Major-Project-AgriLink-Backend.git cd LF-Major-Project-AgriLink-Backend
-
Install dependencies: Ensure you are in the project root directory and run:
npm install
-
Run development server:
npm start
-
Environment Variables: Create a
.env
file in the project root directory and configure the necessary environment variables. Refer to the.env.example
file for required variables. -
Docker Compose: The
docker-compose.yml
file is already configured to set up the necessary services (server, PostgreSQL, and MinIO). Adjust the configuration as needed using .env.
-
Build and start the services:
docker-compose up
-
Stop the services:
docker-compose down
You can interact with the backend once the services are up and running.