Skip to content

Agronify/Agronify-api

Repository files navigation

Agronify-api

This repository is part of our Bangkit 2023 Product Capstone "Agronify". Built with REST implementation and JWT Authentication.

Tech Used

This project is built with the following tech stack and libraries :

  • NodeJS
  • Prisma ORM
  • HapiJs
  • PostgreSQL
  • TensorflowJS

Api Documentation :

Api documentation is available on Postman, please click the following button to view the documentation :

Run in Postman

Prerequisites

  • Docker
  • Docker Compose
  • Postgresql Database

How to run

  1. Clone this repository
  2. Create postgresql database with the name agronify
  3. Insert agronify.sql to the database
  4. Copy .env.example to .env and fill the environment variables with your own
  5. Run docker-compose up -d to run the server
  6. Server will be running on port 20080 (main branch) or 80 (production branch)
  7. Default email and password is admin@agronify.com and admin123
  8. You'll need to add crop, crop disease, ml model, and model class mapping before doing any prediction.