Skip to content

robvan2/project-563123

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

project

This is a users management system

Prerequisites

  • java 15 installed.
  • Java Ide (Intellij Prefered).

How to setup

To setup this project you can follow one of the two following methods

1) By cloning and executing the project

Start by cloning project with

git clone https://github.com/robvan2/project-563123.git

a) Open project with your IDE (must have Maven)

For this readme i'am assuming you're using intellij. Wait for Maven to resolve all the dependencies then :

b) Add Lombok plugin to your Ide:

This link shows you how to Lombok Intellij. Then in your project: Click Preferences -> Build, Execution, Deployment -> Compiler, Annotation Processors. Click Enable Annotation Processing Afterwards you might need to do a complete rebuild of your project via Build -> Rebuild Project.

c) Ready to go:

Navigate to ProjectApplication and Run It.

2) By downloading compiled version :

  • Start By downloading project (.jar file) Project Drive.

  • Open your terminal and navigate to the folder in which you saved the project.

  • Run the following command :

java -jar project-0.0.1-SNAPSHOT.jar

Documentaion :

This section familiarizes you with the project's features.

Swagger :

The project uses Swagger ui. which contains full roadmap of the project APIs (routes + Dtos to privide (request body) + Response). Use the following link to access

http://localhost:8080/swagger-ui.html

H2 Database :

It's an in memory database. To access the console use http://localhost:8080/h2-console/, then use username recruitment and passsword 563123 (also jdbc url jdbc:h2:mem:recruitment). You can change that if you setup the project with the 1st method by changing it in application.properties

Notes :

  • For authentification I used jwt
  • all routes are accessible without authentication except for checkToken and logout.
  • /api/checkToken with "Authorization" header (Bearer token) checks the validity of a token and returns the user.
  • /api/logout invalidates the token (must provide Bearer token in Authorization header).
  • /api/users/find searches for users that contain the searched value in there username or email.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages