csuarez / juc-mongodb-api

A REST API built with MongoDB and Flask for educational purposes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

juc-mongodb-api

API creada para las II Jornadas Técnicas UEx – CIEMAT. Introducción a NoSQL con MongoDB. Versión completa de csuarez/juc-mongodb-api-template.

Instalación

  1. Instalando dependencias
sudo apt-get install git python-dev python-pip
sudo pip install pymongo Flask
  1. Bajamos la plantilla
git clone https://github.com/csuarez/juc-mongodb-api.git
cd juc-mongodb-api
  1. Añadimos datos de prueba
mongoimport --db shop --collection catalog --file catalog.json --host 0.0.0.0
  1. Arrancamos la API
python api.py

NOTA: El servicio se levanta en el puerto 5000.

About

A REST API built with MongoDB and Flask for educational purposes


Languages

Language:Python 100.0%