eugbyte / shopping-cart

E-commerce platform project with front end ui and backend API in Java Spring and Angular

Home Page:http://shoppingcart2.s3-website-ap-southeast-1.amazonaws.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quick look at hosted sites

Angular Site: http://shoppingcart2.s3-website-ap-southeast-1.amazonaws.com SPRING API Site: http://shoppingcart5-env.eba-mm5i3cqy.ap-southeast-1.elasticbeanstalk.com/api/items http://shoppingcart5-env.eba-mm5i3cqy.ap-southeast-1.elasticbeanstalk.com/api/orders/1

SQL DB Installation

  1. Unzip folder
  2. Install MySql and MySql WorkBench (or any sql database of your choice)
  3. Import the Mock SQL Data If you use MySQL: In MySQL, at the menu bar, Go to Server > Data Import > Import from Self-Contained File> Select the sql file in the unzipped folder > Dump Structure and Data > Import
  4. If you use another database, you can create your own database called "shop".Then open the sql file and look for the pertinent "CREATE TABLE" and "INSERT INTO" sql statements and execute those statements.

Java Spring

  1. Open the spring folder in the code editor of your choice
  2. Go to src.main.resources > application.properties
  3. change the username and password to what you set for your sql database. Also make sure the datasource.url points to your database. For MySQL, it will be "spring.datasource.url=jdbc:mysql://localhost:3306/shop..."
  4. Make sure the SQL server is still running
  5. Go to src.main.java.com.example.shoppingCart.ShoppingCartApplication, and run the SpringBootApplication Class

Angular

  1. Now, open another code editor of your choice (I recommend Visual Studio Code) and open the angular folder. Specifically, navigate to angular > shopping-cart, e.g. cd angular/shopping-cart
  2. Execute the command "npm-install" in the terminal to install the node packages
  3. Go to the StringStorage class, and ensure that the apiUrl variable is set to set to "http://{springUrl}/api/". The variable is currently set to the default "http://localhost:8080/api/".
  4. Execute "ng serve --open" in the terminal to execute the angular app

About

E-commerce platform project with front end ui and backend API in Java Spring and Angular

http://shoppingcart2.s3-website-ap-southeast-1.amazonaws.com


Languages

Language:TypeScript 48.3%Language:Java 39.8%Language:HTML 9.7%Language:JavaScript 2.0%Language:CSS 0.2%