dandankarai / fullstack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Descrição

A barbershop system, where we can register a new barbershop, where this barbershop can register as many customers as they want, having a list of haircuts and a list of customers' calendars

Frontend - Technologies used


Backend - Technologies used


Inside ordemsystemfront exist a folder name assets, which has screenshots of the application

👷 How to run

# Clone Repository
$ git clone https://github.com/dandankarai/fullstack.git

📦 Run API

# Build service
$ cd ordemsystemback
yarn install
yarn dev

Access API at http://localhost:3333/

📦 Run FRONTEND

# Build service
$ cd ordemsystemfront
yarn install
yarn dev

Access web at http://localhost:3333/

Inside the folder ordemsystemfront

 $ create .env.local file and paste
        NEXT_PUBLIC_API_URL = 'http://localhost:3333'

ENDPOINTS

Endpoint Descrição
USERS --------
GET /me Return data info about user.
PUT /users Update info about user.
POST /userSession Register a new user.
POST /users Update main infos about user, like email and name
HAIRCUTS ---------
POST/haircut Create a new haircut
GET /haircuts Return the list os haircuts registered
GET /haircut/detail Return detail about haircut user
GET /haircut/check Return if user has a subscription(premium)
GET /haircut/count Returns the number of cuts.
SCHEDULE --------
GET /schedule Return the list of schedules
POST /schedule Create a new schedule


About


Languages

Language:TypeScript 100.0%