🛒An e-commerce shopping website. Docker, Java 11, REST API, JWT, Bootstrap, 购物车, 电子商城
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.
For Heroku application repo cloning, please check Angular7-SpringBoot-hybrid-project.
Backend
Frontend
Start the backend server before the frontend client.
Backend
application.yml
.cd backend
.mvn install
.mvn spring-boot:run
.import.sql
automatically.Frontend
cd frontend
.npm install
.ng serve
Note: The backend API url is configured in src/environments/environment.ts
of the frontend project. It is localhost:8080/api
by default.
You can build the image and run the container with Docker.
cd backend
mvn package
cd frontend
npm install
ng build --prod
docker-compose up --build