Backend project (API) for a food delivery application.
- The project is the construction of an API to:
- Allow Authentication;
- Query Products;
- Receive Orders;
- Cancel an Order;
- Get Order Status;
- Store data in a database of his/her choice;
Customer - user that places orders
Cousine - the cousine type of store
Product - list of available products to be ordered by customers
Order - create, check status, cancel orders.
Store - store that have list of products.
clone- execute the file
database.sqlon local installation of MySQL 5.7+ (you can change the server editing the fileapplication.properties). mvn spring-boot:run- go to
http://localhost:8080/swagger-ui.html#/to see the available endpoints
Available at: http://localhost:8080/swagger-ui.html
This project's web services documentation was generated using Spring and Swagger integration, the SpringFox project.
If you want to learn more about SpringFox project check here.
Test this application endpoints with Postman:
- Download it
- Start it and import
SkipTD_JavaChallange.postman_collection.jsonwhich is a collection of example requests.
For this project I used MySQL. Since I am also using an ORM solution (Hibernate) it could be switched to another database solution with no major issues. But, also, have a sample using pure JDBC: ProductDAOJDBCSampleImpl.java
