Coder Social home page Coder Social logo

ship-challenge's Introduction

Shippify Challenge

Pequeño proyecto usando React en frontend y NodeJs con Express en el backend.

Instalación

El presente repositorio es un monorepo, es decir el frontend y el backend se encuentran en el mismo directorio. Clone el repositorio y escriba el comando npm install en la carpeta backend y en la carpeta frontend.

Iniciar backend

npm run devstart nodemon

Iniciar frontend

npm run dev creado con Vite

Acknowledgements

API

Get conductores

  GET /drivers

Get vehiculos por conductor

  GET /drivers/${id}
Parameter Type Description
id string Requerido. Id del conductor

Get vehículo por id

  GET /vehicle/${id}
Parameter Type Description
id string Requerido. Id del vehículo

POST crear un nuevo vehículo

  POST /vehicle/create
Parameter Type Description
plate string Placa del vehículo
model string Modelo del vehículo
type string Tipo de vehículo
capacity string Capacidad del vehículo
driver_id string Id del conductor

PUT actualizar la información de un vehículo

  PUT /vehicle/update
Parameter Type Description
id string Id del vehículo
plate string Placa del vehículo
model string Modelo del vehículo
type string Tipo de vehículo
capacity string Capacidad del vehículo
driver_id string id del conductor

PUT actualizar la información de un vehículo

  DELETE /vehicle/delete/${id}
Parameter Type Description
id string Id del vehículo a eliminar

Frontend

Pages

  • Home
  • Vehicle
  • CreateVehicle
  • UpdateVehicle

Services

  • driver.js

Utils

  • loader.js dentro de pages

ship-challenge's People

Contributors

igiorojas 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.