Online Shop Application
A full-stack Online Shop web application using Spring Boot 2 and Angular 11.
This is a Single Page Appliaction with client-side rendering. The frontend client makes API calls to the backend server when it is running.
http://foxgaming.s3-website.us-east-2.amazonaws.com/ (down because no money :p)
Live Demo:Features
- REST API
- JWT authentication
- Persistent customers' shopping cart
- Cart & order management
- Checkout
- Catalogue
- Order management
Technology Stacks
Backend
- Java 11
- Spring Boot 2.2
- Spring Security
- JWT Authentication
- Spring Data JPA
- Hibernate
- H2 / Postgresql
- Maven
Frontend
- Angular 11
- Angular CLI
- vanilla CSS
How to Run
Start the backend server before the frontend client.
Backend
- Install PostgreSQL
- Configure datasource in
application.properties
. cd backend
.- Run
mvn install
. - Run
mvn spring-boot:run
. - Spring Boot will import mock data into database by executing
import.sql
automatically. - The backend server is running on localhost:8080.
Frontend
- Install Node.js and npm
cd frontend
.- Run
npm install
. - Run
ng serve
- The frontend client is running on localhost:4200.
Note: The backend API url is configured in src/environments/environment.ts
of the frontend project. It is localhost:8080/api
by default.