This project is about Building REST APIs for Acme Fresh website which can be used by customers for different services. Acme Fresh helps us to buy Hydroponically produced vegetable directly from farmers. Hydroponics is also known as soil-less farming that requires a lot of technology augmentation like IoT, AI, etc hence also known as precision farming or vertical farming.
The company provides different services such as:
- Setting up hydroponic farm infrastructure for customers.
- Selling hydroponic produce obtained from its clients and other firms.
- Automating farms using modern techniques.
- Selling produce directly to customers(B2C) from its website.
- Services Offered
- Farmer and Customer can Login and Signup.
- Farmer can post their Hydroponically produced vegetable to the website.
- Customer can view and buy vegetables directly from farmers
- Backend
- Built authentication and authorization using Spring Security and JWT.
- Stored the data on MySQL database
- TechStack
- Java 8
- Spring Boot
- Spring Security(JWT Authentication)
- Spring Data JPA
- MySql
- Swagger
- Before running the API server, you should update the database config inside the application.properties file.
- Update the port number, username and password as per your local database configuration.
server.port=8080
spring.datasource.url=jdbc:mysql://localhost:3306/acme_fresh;
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=root
spring.datasource.password=root
🚀 The Swagger link to check rest Api-> http://localhost:8080/swagger-ui/