The Crop Insurance System is a web application designed to help farmers affected by natural disasters report their issues to government officials. Farmers can submit reports with images and location details, while officials can track and update the progress of these reports.
The system provides two main roles:
- Farmer – Reports problems and tracks progress.
- Staff – Reviews reports and updates statuses.
- Submit a report with details, images, and location.
- Specify farm location by entering an address or pinning it on the map.
- Track report progress in real-time.
- View submitted reports from farmers.
- Update report status based on progress.
- Nuxt.js – Frontend framework.
- Vuetify – UI component library.
- Leaflet.js – Interactive map library for geolocation.
- Node.js & Express.js – Backend framework.
- Sequelize – ORM for database management.
- PostgreSQL – Database system.
- Heroku – Cloud deployment platform.
- Open Government Data API (Thailand) – Fetches provinces, districts, sub-districts, and geographic coordinates.
Before setting up the project, ensure you have:
- Node.js & npm installed
- PostgreSQL database
- Heroku CLI (for deployment)
git clone https://github.com/nnewtrp/CropInsurance_2.git
cd CropInsurance_2- Create a PostgreSQL database for the project.
- Update the database connection settings in .env or config.js.
- Run migrations using Sequelize:
npx sequelize db:migratenpm install- Start the project:
npm run dev- Open the browser and visit:
http://localhost:3000/
- Login to Heroku:
heroku login- git push heroku main:
git push heroku mainTo explore the technologies used in this project, check out the official documentation:
- 📖 Nuxt.js – Learn more about the frontend framework.
- 🎨 Vuetify – Discover UI components for a better design experience.
- 🗺 Leaflet.js – Understand how interactive maps work.
- ⚡ Node.js – Read about the JavaScript runtime for backend development.
- 🚀 Express.js – Get details on the backend framework.
- 🛢 Sequelize – Learn about the ORM used for database management.
- 🗄 PostgreSQL – Read up on the relational database system.
- ☁️ Heroku – Find guides on deploying applications.
This project was developed as the Senior Project for ITS403 - Information Technology Project at Sirindhorn International Institute of Technology, Thammasat University.
📧 Contact: teerapat.sat24@gmail.com
🔗 GitHub: nnewtrp