mvochoa / melp Goto Github PK
View Code? Open in Web Editor NEWPrueba Back-end Developer Intelimétrica
Home Page: https://melp-mario.herokuapp.com/
License: MIT License
Prueba Back-end Developer Intelimétrica
Home Page: https://melp-mario.herokuapp.com/
License: MIT License
Se necesita crear una migración para la tabla restaurants con los siguientes campos:
Nombre | Tipo | Descripción |
---|---|---|
id |
UUID | Identificador unico |
rating |
Integer | Clasificación, solo puede tener valores de 0 a 4 |
name |
Text | |
site |
Text | URL del sitio web |
email |
Text | |
phone |
Text | |
street |
Text | |
city |
Text | |
state |
Text | |
lat |
Float | Latitud |
lng |
Float | Longitud |
Ademas se debe cargar los registro del csv restaurantes.csv en la tabla restaurants
Crear todos los archivos para usar las siguientes tecnologías:
Se debe crear la ruta GET /restaurants/statistics
que va recibir los siguientes parámetros:
Nombre | Tipo | Descripción |
---|---|---|
latitude |
Float | Latitud |
longitude |
Float | Longitud |
radius |
Float | Radio, la unidad que maneja son metros |
Las respuesta de la ruta seria:
{
"count": "Cantidad de restaurantes que se encuentran dentro del círculo",
"avg": "Calificación promedio del restaurante dentro del círculo",
"std": "Desviación estándar de la calificación de los restaurantes dentro del círculo",
}
Se debe crear la lógica para las rutas:
POST /restaurants
: Registra nuevos restaurantesGET /restaurants
: Listar todos los restaurantes registradosGET /restaurants/{id}
: Obtener los datos de un restaurantes en especificoPUT /restaurants/{id}
: Actualizar los datos de un restaurantes en especificoDELETE /restaurants/{id}
: Eliminar el registro de un restaurantes en especificorating
sea un número entre 0 y 4.A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.