Skip to content

Latest commit

 

History

History
97 lines (62 loc) · 2.44 KB

README.md

File metadata and controls

97 lines (62 loc) · 2.44 KB

Crush E-Commerce

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.

Live demo

Preview

Home page

User admin page:

update user

Menu admin page:

update menu

Update a meal:

update meal

Restful API page:

restful page

Restful example:

restful example

Login page:

login

Register page:

sign up

Payment page:

update meal

Payment success:

payment success

Getting started

Prerequisites

  • JDK
  • Intellij/Eclipse
  • Maven
  • Spring Boot
  • MySQL
  • Stripe Account

Usage

  • Populate database with crush.sql in MySQL

  • Set up datasource of your database in application.properties file

    # 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.properties file

    # 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

Deployment

License

This project is licensed under the MIT License - see the LICENSE.txt file for details