I'm building an API REST for an e-commerce called by Impact Us. In this e-commerce you can have a common user and an adminstrator user. The common user can create a user, look for products, add in a shipping cart and see your products. An Administrator can have an account, add products to clients buy, remove products and other things.
- Java
- Spring Boot
- PostgreSQL
- JPA
- Hibernate
- Spring Security
- CI (GitHub Actions)
- Java - 17
- Maven - 3.x.x
- MySQL
- IDE (Intellij IDEA or Eclipse) I use Intellij. Just pick one
- Clone the application
git@github.com:EricklisCruz/ImpactUs.git
- Create MySQL database
create database impact_us
- Change MySQL username and password
You can test using Postman or Insomnia. I particularly use Postman. Just pick one and start using it
-
Create you credentials: email, password, you can be an admin or an costumer just pick one (USER_ROLE or ADMIN_ROLE)
-
Copy your token. You sure are gonna need use in some endpoints. After login you are going to put some personal informations. So, you need to select authorization, select Bearer Token and paste it:
Then, you can select body, raw (JSON) and write your personal informations and send:



