Skip to content

manatik/hardware-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hardware store

Frontend

.env

1. Что-то
2. Что-то

Backend

.env

1. DATABASE_URL="postgresql://user:password@localhost:5432/database?schema=public"
2. JWT_SECRET="for jwt secret"
3. COOKIE_SECRET="for cookie secret"
4. PORT=port server
5. MAIL_HOST=host email smtp
6. MAIL_USER=email sender
7. MAIL_PASSWORD=email password
8. MAIL_RECIPIENT=email recipient

Все маршруты API описаны в файле - src/common/consts/endpoints.consts.ts;

API

  • PREFIX=/api

Users

  • PREFIX=/user

  • getAll

    • method=GET
    • path=/all
    • query=?deleted=bool
  • getInfo

    • method=GET
    • path=/info
    • query=?roles=bool
  • create

    • method=POST
    • path=/
  • update

    • method=PATCH
    • path=/:id
  • remove

    • method=DELETE
    • path=/:id

Category

  • PREFIX=/category

  • getAll

    • method=GET
    • path=/
  • getById

    • method=GET
    • path=/:id
  • update

    • method=PATCH
    • path=/:id

Products

  • PREFIX=/products

Furniture

  • PREFIX=/furniture

  • getAll

    • method=GET
    • path=/
  • getById

    • method=GET
    • path=/:id
  • update

    • method=PATCH
    • path=/:id
  • remove

    • method=DELETE
    • path=/:id

House

  • PREFIX=/house

  • getAll

    • method=GET
    • path=/
  • getById

    • method=GET
    • path=/:id
  • update

    • method=PATCH
    • path=/:id
  • remove

    • method=DELETE
    • path=/:id

Plywood

  • PREFIX=/plywood

  • getAll

    • method=GET
    • path=/
  • getById

    • method=GET
    • path=/:id
  • update

    • method=PATCH
    • path=/:id
  • remove

    • method=DELETE
    • path=/:id
    • query=?hard=bool

Plywood formats

  • PREFIX=/plywood-format

  • getAll

    • method=GET
    • path=/
    • query=?group=bool
  • getById

    • method=GET
    • path=/:id
  • update

    • method=PATCH
    • path=/:id
  • remove

    • method=DELETE
    • path=/:id

Plywood surfaces

  • PREFIX=/plywood-surface

  • getAll

    • method=GET
    • path=/
  • getById

    • method=GET
    • path=/:id
  • update

    • method=PATCH
    • path=/:id
  • remove

    • method=DELETE
    • path=/:id

Plywood sort

  • PREFIX=/plywood-sort

  • getAll

    • method=GET
    • path=/
  • getById

    • method=GET
    • path=/:id
  • update

    • method=PATCH
    • path=/:id
  • remove

    • method=DELETE
    • path=/:id

Plywood type

  • PREFIX=/plywood-type

  • getAll

    • method=GET
    • path=/
  • getById

    • method=GET
    • path=/:id
  • update

    • method=PATCH
    • path=/:id
  • remove

    • method=DELETE
    • path=/:id

Plywood coating density

  • PREFIX=/plywood-coating-density

  • getAll

    • method=GET
    • path=/
  • getById

    • method=GET
    • path=/:id
  • update

    • method=PATCH
    • path=/:id
  • remove

    • method=DELETE
    • path=/:id

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •