coverage backend
This is a system for managing employees.
Try with admin super power:
username: vitoria
password: 123456
Also set up the following env variables for the mail service (guide here):
MAIL_HOST=smtp.example.com
MAIL_PORT=123
MAIL_USERNAME=mymail@example.com
MAIL_PASSWORD=asdfASDF123
MAIL_PASSWORD
is not your email password, you need to create an app password, set this up here if using google.
- Clone repository:
git clone git@github.com:mairess/employee-system.git
cd employee-system
- Run application:
docker compose up -d --build
- Available routes:
http://localhost:8080/swagger-ui/index.html
To run this project locally, follow these steps:
Make sure you have the following installed on your machine:
Also set up the following env variables for the mail service (guide here):
MAIL_HOST=smtp.example.com
MAIL_PORT=123
MAIL_USERNAME=mymail@example.com
MAIL_PASSWORD=asdfASDF123
MAIL_PASSWORD
is not your email password, you need to create an app password, set this up here if using google.
- Start Kafka with KRaft (Kafka must be running before start the application):
# Generate a Cluster UUID
KAFKA_CLUSTER_ID="$(bin/kafka-storage.sh random-uuid)"
# Format Log Directories
bin/kafka-storage.sh format -t $KAFKA_CLUSTER_ID -c config/kraft/server.properties
#Start the Kafka Server
bin/kafka-server-start.sh config/kraft/server.properties
- Clone repository:
git clone git@github.com:mairess/employee-system.git
cd employee-system
- Start database:
docker compose up -d database
- Start backend:
cd backend
mvn clean install
mvn spring-boot:run
- Start ms-email:
# open another terminal and enter ms-email
cd ms-email
mvn clean install
mvn spring-boot:run
- Start frontend (just to change password nothing more):
# open another terminal and enter frontend
cd frontend
npm install
npm run dev
- Available routes:
http://localhost:8080/swagger-ui/index.html