BookStore-Vermeg
Screenshots
CustomerPages:
1-Loginpage:
2-Bookspage:
3-Cartpage:
Employee & Manager pages :
1-Orderspage:
2-editbookpage:
3-editprofilepage:
Technology Stacks
Backend
- Java 11
- Spring Boot 2.4.0
- Spring Security
- JWT Authentication
- Spring Data JPA
- Hibernate
- MySQL
- Maven
Frontend
- Angular 11
- Angular CLI
- Bootstrap
How to Run
Start the backend server before the frontend client to get the api json .
Backend
- Install MySQL
- 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.
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 . in case you want to change it go to the api file in your backend and change it name and change it also in application.yml & enviroment.ts
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