This is a Single Page Appliaction with client-side rendering. It includes backend and frontend two seperate projects on different branches.
- REST API
- JWT authentication
- Cookie based visitors
- Persistent users information
- Employee & Payment management
- Function
- Leave
- Authentication
- Pagination
- Form Validation
- Template-Driven-form
Backend
- Java 11
- Spring Boot 2.7
- Spring Security
- JWT Authentication
- Spring Data JPA
- Hibernate
- PostgreSQL
- MySQL
- Maven
Frontend
- Angular 14
- Angular CLI
- Bootstrap
Start the backend server before the frontend client.
Backend
- Install PostgreSQL or MySQL.
- Configure datasource in
application.properties
for MySQL orapplication-local.properties
for PostgreSQL . cd EmployeeManBackend
.- 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:8081.
Frontend
- Install Node.js and npm
cd EmployeeManFrontend
.- 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:8081/api/v1
by default.