Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hokkung/user
Spring boot web application for handling user information
https://github.com/hokkung/user
api java junit5 mysql spring spring-boot spring-data-jpa spring-mvc spring-security spring-security-jwt spring-security-oauth2
Last synced: 3 days ago
JSON representation
Spring boot web application for handling user information
- Host: GitHub
- URL: https://github.com/hokkung/user
- Owner: hokkung
- Created: 2024-03-22T04:47:37.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-04-30T10:15:01.000Z (7 months ago)
- Last Synced: 2024-04-30T12:14:37.778Z (7 months ago)
- Topics: api, java, junit5, mysql, spring, spring-boot, spring-data-jpa, spring-mvc, spring-security, spring-security-jwt, spring-security-oauth2
- Language: Java
- Homepage:
- Size: 149 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# user service
---
### Scope
1. A service handles about user information.
2. This service provides APIs to CRUD user data.
3. This service provides authentication and authorization.
4. Service uses MySQL as RDBMS database### Related Java topic
1. Spring boot, secure, JPA
2. Mapstruct
3. OOP
4. Oauth2, JWT---
### Running locally
1. Copy `application-local-template.properties` to `application-local.properties`
2. Add environment variable `SPRING_PROFILES_ACTIVE=local`
3. Start MySQL
4. Run database changelog from [this](https://github.com/hokkung/user-changelog)
5. Generate key pair
1. create certs folder
1. `cd src/main/resources/certs`
2. generate RSA private key using openssl
3. `openssl genrsa -out keypair.pem 2048`
3. extract public key from private key
4. ` openssl rsa -in keypair.pem -pubout -out publicKey.pem`
5. format private key in supported format (PKCS8)
6. `openssl pkcs8 -topk8 -inform PEM -outform PEM -nocrypt -in keypair.pem -out privateKey.pem`
6. start maven