Skip to content

jnorgini/spring-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST API with Authentication (JWT)

This project was generated with Spring Boot

About this project

This project is a secure login and registration system with JWT authentication and validations.

Note: Only authenticated users can update or delete their own accounts. Authentication is done using a token received after login. With the users/me endpoint it is possible to receive information about the authenticated user.

Example:

  1. In Postman, navigate to the Headers section.
  2. Add a new header with the key Authorization.
  3. Set the value to Bearer followed by a space and then your token.

Technologies

+ Java
+ Maven - version 4.0.0
+ Spring Web
+ JPA
+ Database development MySQL
+ Lombok
+ JWT - version 4.4.0
+ Spring Security 
+ Validation
+ Modelmapper - version 3.1.1

Development in localhost

  • $ git clone https://github.com/jnorgini/spring-jwt

  • in the cloned project directory $ git checkout develop

  • VS Code open the project and start SpringJwtApplication.java after adjusting the database settings in application.properties

  • STS4 import maven project and start local server after adjusting database settings in application.properties

Project structure

Captura de tela 2024-03-17 200605

Automation testing with Postman

Deployment

The microservice is available at Render. To avoid periods of inactivity, I use cron jobs configured at Cron-Job.org with the endpoint /report/1 for scheduled tasks.

Developed by

🛠️ Juliana Norgini

Contact

💼 LinkedIn

📧 E-mail

About

REST API with Spring Boot, Maven & MySQL + Authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors