Git Product home page Git Product logo

wallmart-challenge-backend-list's Introduction


Logo

Desafio Wallmart Backend

Crear una interfaz para crear una nueva “nave interestelar”, con un backend en nodejs que guarde la información en base de datos. Para el modelo de datos usar la siguiente entidad (es válido descartar algunos campos como ejem: pilots)
Ver Deploy

Sobre el proyecto

Crear dos API en Node.js con sus respectivas interfaces. Consumir información de API de prueba StarWars API (link) y de base de datos.

(back to top)

BackEnd Construido con

(back to top)

Empezando

Siga las intrucciones que vienen a continuación para poder probar el proyecto localmente.

Instalación

  1. Clonar el repositorio

    git clone https://github.com/AndresEGV/wallmart-challenge-backend
  2. Instalar dependecias NPM

    npm install
  3. Abrir terminal en el proyecto y ejecutar el siguiente comando

    node index.js o utilizar nodemon
  4. Crear variable de entorno llamada variables.env y poner lo siguiente:

    FRONTEND_URL= http://localhost:3000
    DB_URL= mongodb+srv://root:[email protected]/starwars
    

Consideraciones

La base de datos esta en Mongo DB Atlas, por lo que no es necesario instalar nada, ya esta en internet y funcionando

(back to top)

Endpoints

Esta es una API de consumo. Solo se utilizó el método HTTP GET.

  1. api/interstellar-ships Permite ver todas las naves de la base de datos
[
  {
    "name": "StarFighter",
    "model": "X-wag",
    "manufacter": "John Doe",
    "passangers": 2,
    "starShipClass": "Fighter",
    "cargoCapacity": 400,
    "__v": 0
  },
  {
    "name": "StarFighter",
    "model": "X-wag",
    "manufacter": "John Doe",
    "passangers": 2,
    "starShipClass": "Fighter",
    "cargoCapacity": 400,
    "__v": 0
  }
]
  1. /api-doc Permite ver la documentación de la API creada en swagger

(back to top)

wallmart-challenge-backend-list's People

Contributors

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