- REST API
- Docker
- Docker Compose
- JWT authentication
- Cookie based visitors' shopping cart
- Persistent customers' shopping cart
- Cart & order management
- Checkout
- Catalogue
- Order management
- Pagination
Backend
- Java 11
- Spring Boot 2.2
- Spring Security
- JWT Authentication
- Spring Data JPA
- Hibernate
- PostgreSQL
- Maven
Note: The backend API url is configured in
src/environments/environment.ts
of the frontend project. It islocalhost:8080/api
by default.
- 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.sql
automatically. - The backend server is running on localhost:8080.
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