Backend for pizzaDEVourers project. Live demo [coming soon]
- General Info
- Technologies Used
- Endpoints
- Screenshots
- Setup
- Usage
- Project Status
- Room for Improvement
- Acknowledgements
- Contact
- pizzaDEVourers is a client-server style application.
- Frontend can be found here
- It was build in order to encounter real-life programming challanges and solve them - just for fun and hobby.
- Java - version 11.0
- Spring Boot - version 2.6.3
- MongoDB
- REST API
- JWT (JSON Web Token)
Returns array of menu items, including meals and drinks.
Used to login into server.
Example request:
{
"username": "dariuszczajka",
"password": "thatISanAWFULp@$$w0rd"
}
User to register a first-time user into a database of clients.
Example request:
{
"username": "dariuszczajka",
"password": "thatISanAWFULp@$$w0rd",
"first_name": "Dariusz",
"last_name": "Czajka",
"address": "ul. Nowa 1, 33-100 Tarnow",
"telephone": "555222111"
}
Used to send an order to process in restaurant. Returns an UUID of order.
Example request:
{
"userJWT": "eyJraWQiOiI2MWY2YjdlMTYzOGQ4NzMwMjRiZDRmNjciLCJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJhdXRoMCIsImV4cCI6MTY0Mzc0MzIyMH0.sFfafw6q95oxOrhDVQf6g7NUQdhngEX9Wu4x56FM3gw",
"productsList": [
{
"productId": "61f910db551c0dc22d4acdfe",
"amount": 1
},
{
"productId": "61f910db551c0dc22d4ace0a",
"amount": 2
}
]
}
Required dependencies:
- spring-boot-starter-web
- spring-boot-starter-data-mongodb
- spring-boot-starter-web-services
- spring-boot-starter-test
- spring-security-core
- java-jwt
- itextpdf
Due to security reasons, application.properties isn't provided within the repository. So, in order to run the project, you must create it yourself.
Don't worry - this guide got you covered.
Great! All you need to do is create a new file within the "resources" catalog. Copy this
spring.data.mongodb.database={{YOUR_DATABASE}}
spring.data.mongodb.uri={{YOUR_URI}}
into your file (change the credentials - OBVIOUSLY), and save it.
🎉🎉 Congratulations! It should work as expected. 🎉🎉
Project is: in progress
To do:
- admin console,
- admin stats for sales, using data collected in the database
Ideas:
- own fork of frontend
Created by Dariusz Czajka LinkedIn E-mail - feel free to contact me!