Coder Social home page Coder Social logo

minijo-reviews's Introduction

minijo-reviews

Simple system for reviews of keyboards.

How to run?

docker-compose up

Docker enviroments vars

Database PGSQL

POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB

backend envs

  USER_DB, PASS_DB, NAME_DB, HOST_DB, PORT_DB: 5432

Simple CRUD using go Echo and pgsql

Routes API

Obtener Reviews

```
Obtiene todas las reviews de la base de datos
Ruta: {GET}
    $URL/getReviews
```

Obtener Review específica

```
Obtiene una review a partir de su id
Ruta: {GET}
    $URL/getReview/:id
```

Crear una Review

```
Crea una review. Necesita:
    - id del usuario {user_id} // NOT NULL
    - id del teclado {keyboard_id} // NOT NULL
    - descripción {description} // default ''
    - stars {stars} // default 0

EJ:
    {
        "keyboard_id": 2,
        "user_id": 1,
        "description": "este teclado ta bonito",
        "stars": 4
    }
Ruta: {POST}
    $URL/createReview
```

Editar una Review

```
Edita una review. Necesita:
    - id de la review {id} // NOT NULL
    - descripción {description} // Enviar valor previo, por cualquier problema
    - stars {stars} // Enviar valor previo, por cualquier problema

EJ:
    {
        "id": 1,
        "stars": 3,
        "description": "creo q ya no es tan sex0"
    }
Ruta: {PUT}
    $URL/editReview
```

Eliminar una Review

```
Elimina una review. Necesita:
    - id de la review {id} // NOT NULL

EJ:
    {
        "id": 1,
    }
Ruta: {DELETE}
    $URL/deleteReview
```

Frontend using react

minijo-reviews's People

Contributors

naikelin avatar mygeone2 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.