The purpose of this project is to create a simple API for user management, supporting a web application that you can find in this repository.
To configure the application is necessary to modify the application.properties file by setting your database variables.
| Property | Description |
|---|---|
| spring.datasource.url | Database connection string |
| spring.datasource.username | Database username |
| spring.datasource.password | Database password |
Just execute:
.\mvnw clean package
java -jar .\target\users-api-0.0.1-SNAPSHOT.jarBy default, the previous commands will deploy an instance of the API on the 8080 port of your local machine.
If you want to deploy the API in container mode, you have to create the Docker image and run it:
docker build -t users_api .
docker run -p 8080:8080 users_apiYou can test the API by using the Postman collection that you can find here.
Note that you can also test the application by using the user interface that you can find in this repository.