This is sample spring boot project
-
Clone this project
-
Run Mysql from docker-compose.yml file use the command:
docker-compose up -
Open project in intellij IDE free community edition. https://www.jetbrains.com/idea/download/
-
Create run configuration as shown in image :
-
Use Environment variables
MYSQL_URL=mysql://127.0.0.1:3307/pesto;USERNAME=root;PASSWORD=123456 -
Once the project is up and running use this postman collection: https://api.postman.com/collections/15114630-5498502d-b607-4a41-aa48-a34052444e53?access_key=PMAT-01HSB7Q28R5AP0KYEYVZVG6MAZ
Import the above collection into your postman and use
- Create User API to create user.
- Before any API call you will have to create jwt token using authenticate api and use it into header of every API.