Skip to content

ryhaldenys/Backend-of-clothing-shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend-of-clothing-shop

  • A Java Backend project
  • User login credentials: (user@gmail.com/useruser)
  • Admin login credentials: (admin@gmail.com/adminadmin)

About project

This project is the backend of the clothing store where users can log in or register and get data in JSON format. The user can have ADMIN, USER, or unauthorized user role in this project.


An unauthorized user can:
  • log in
  • register
  • get all clothes
  • get all clothes by id

Simple user can:
  • get information about your account
  • update your account
  • delete your account
  • get the address of the post office
  • get the contents of the basket
  • add clothes to the basket
  • delete chosen clothes from the basket
  • update amount of chosen clothes in the basket
  • add person bonuses to the basket
  • delete person bonuses from the basket
  • get your orders
  • get your order by id
  • create order
  • cancel order

Admin can:

  • do all that user can do
  • get all users
  • save clothes
  • delete clothes
  • add images and sizes to clothes
  • delete images and sizes from clothes
  • get all orders
  • get an order by id
  • set status received to order

Examples of HTTP methods can see in: http methods examples

Software And Tools Required

  • IntelliJ IDEA [Ultimate]
  • Java [JDK 17+]
  • Postgres SQL

Dummy Database Initialization

STEP 1: Download PostgreSQL if it does not already exist on your laptop
STEP 2: Open PostgreSQL command prompt or pgAdmin
STEP 3: Enter or create a password, then if you use pgAdmin, open script console
STEP 4: Copy paste PostgreSQL commands from Sql script and run

Importing and Running The Project Through IntelliJ IDEA

STEP 0: Download JDK 17 + , if not already installed
STEP 1: Open IntelliJ IDEA. [Install, if not already installed.]
STEP 2: Click on Get from VSC > Paste The Repository Url as:
https://github.com/ryhaldenys/Backend-for-staff-application-simplified-version.git and enter Clone
STEP 3: Go inside src/main/resources > application-dev.properties and update the value of database details as per your usage, like spring.datasource.url , spring.datasource.password , and spring.datasource.username according to your installed PostgreSQL admin user credentials.
STEP 4: Go inside src/main/java/ua.staff then open StaffApplication class and run the project.
STEP 5: Check running the site at http://localhost:8083/api/clothes
STEP 6: Default email, password, and id for admin is admin@gmail.com, adminadmin, and 2
STEP 7: Default email, password, and id for admin is user@gmail.com, useruser and 1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published