Skip to content

annahico/PROJECT-Tattoo-Backend

Repository files navigation

REST API: TATTOO STUDIO (backend project)

Tattoo Studio

Table of Contents 📁

  1. Description 🏛️
  2. Stack ⚙️
  3. Features
  4. Endpoints
  5. DataBase 📖
  6. Installation
  7. Implementation
  8. Link 🎯
  9. Developer 👋

The project consists of developing a REST API for managing appointments in a tattoo studio. The API will allow users to perform operations such as creating, listing, updating and deleting services, managing users and appointments.

  • ORM: Sequelize
  • Language: JavaScript
  • Framework: Express.js
  • User Registration and Login
  • User Management
  • Service Management
  • Appointment Management

Authentication

Method URI Action
POST /api/auth/register User Registration
POST /api/auth/login User login

Users

Method URI Action Rol
GET /api/users View all users Super Admin
GET /api/users/profile View user profile
PUT /api/users/profile Modify profile information
GET /api/[email protected] Filter user by email Super Admin
DELETE /api/users/:id Delete user Super Admin
PUT /api/users/:id/role Role change Super Admin
GET /api/users/tattoo_artist List all tattoo artists Super Admin

Appointments

Method URI Action Rol
POST /api/appointments Create appointment
PUT /api/appointments Update my appointment
GET /api/appointments/:id Retrieve appointment
GET /api/appointments View my own appointments

Services

Method URI Action Rol
GET /api/services View my own appointments
POST /api/services Create appointment Super Admin
PUT /api/services/:id Update my appointment Super Admin
GET /api/services/:id Retrieve appointment Super Admin

5. DataBase 📖

DataBase

In order to use this project, follow the following steps:

  • Open your terminal or command line and run the following command to clone the repository from GitHub
    git clone https://github.com/annahico/PROJECT-Tattoo.git
  • Once the repository is cloned, access the project directory.
  • Open the project folder in your favorite text editor or IDE and open the terminal
  • Run the following command to install the project and all required packages.
    npm install
  • Create a .env file and copy what is in .env.example, but based on the information from your local database instance.
  • Place the credentials and name of the database in the config file.
  • Create Database
  • Run migrations
    npm run migrate
  • Run Seeders
    npm run seed
  • Run Project
    npm run dev
  • Now in Postman you can consult each of the endpoints.

8. Link 🎯

https://github.com/annahico/PROJECT-Tattoo

9. Developer 👋

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published