zhulinn/SpringBoot-Angular7-Online-Shopping-Store
zhulinn/SpringBoot-Angular7-Online-Shopping-Store has 413 GitHub stars and 295 forks. GitHot measured -2 stars in 24 hours. Last checked 2026-11-20 09:46 UTC. Last push 2024-05-29.
What you can do
- JWT authentication
- Cookie based visitors' shopping cart
- Persistent customers' shopping cart
- Cart & order management
Measured star growth
- in 24h
- -2
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
🛒An e-commerce shopping website. Docker, Java 11, REST API, JWT, Bootstrap, 购物车, 电子商城
Web & AppsREADME.md
OriginalOnline Shop Application
A full-stack Online Shop web application using Spring Boot 2 and Angular 7.
This is a Single Page Appliaction with client-side rendering. It includes backend and frontend two seperate projects on different branches. The frontend client makes API calls to the backend server when it is running.
This project is based on my previous project Online-Shopping-Store, which uses FreeMarker as template engine for server-side rendering.
Live Demo: https://springboot-angular-shop.herokuapp.com/ Heroku has removed free tier on Postgres, the demo is no longer working...:(
For Heroku application repo cloning, please check Angular7-SpringBoot-hybrid-project.
Screenshot

Features
- REST API
- Docker
- Docker Compose
- JWT authentication
- Cookie based visitors' shopping cart
- Persistent customers' shopping cart
- Cart & order management
- Checkout
- Catalogue
- Order management
- Pagination
Technology Stacks
Backend
- Java 11
- Spring Boot 2.2
- Spring Security
- JWT Authentication
- Spring Data JPA
- Hibernate
- PostgreSQL
- Maven
Frontend
- Angular 7
- Angular CLI
- Bootstrap
Database Schema

How to Run
Start the backend server before the frontend client.
Backend
- Install PostgreSQL
- Configure datasource in
application.yml. cd backend.- Run
mvn install. - Run
mvn spring-boot:run. - Spring Boot will import mock data into database by executing
import.sqlautomatically. - 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.
Run in Docker
You can build the image and run the container with Docker.
- Build backend project
cd backend
mvn package
- Build fontend project
cd frontend
npm install
ng build --prod
- Build images and run containers
docker-compose up --build