This is a maven-based Spring MVC e-commerce web application which supports user authentication/authorization, complete purchasing experience, and CRUD operations via Restful service and admin pages.
User admin page:
Menu admin page:
Update a meal:
Restful API page:
Restful example:
Login page:
Register page:
Payment page:
Payment success:
- JDK
- Intellij/Eclipse
- Maven
- Spring Boot
- MySQL
- Stripe Account
-
Populate database with
crush.sqlin MySQL -
Set up datasource of your database in
application.propertiesfile# Datasource properties spring.datasource.url=jdbc:mysql://localhost:3306/<dbname> spring.datasource.username=<connection username> spring.datasource.password=<connection password> -
Set up your stripe public/secret key in
application.propertiesfile# stripe key STRIPE_PUBLIC_KEY=<stripe public key> STRIPE_SECRET_KEY=<stripe secret key> -
Set up your port number
server.port=<your port number> -
Run application
-
Open
http://localhost:<port number>on browser
Note: by default in application.properties file, the port number is set to 5000
-
Deploy MySQL database to Amazon RDS
-
Deploy Spring Boot application to Amazon EC2
This project is licensed under the MIT License - see the LICENSE.txt file for details