https://github.com/csuarez/juc-mongodb-api
A REST API built with MongoDB and Flask for educational purposes
https://github.com/csuarez/juc-mongodb-api
Last synced: 11 months ago
JSON representation
A REST API built with MongoDB and Flask for educational purposes
- Host: GitHub
- URL: https://github.com/csuarez/juc-mongodb-api
- Owner: csuarez
- Created: 2016-02-10T10:03:40.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-12T11:27:47.000Z (over 10 years ago)
- Last Synced: 2025-03-02T20:19:20.245Z (over 1 year ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/csuarez/juc-mongodb-api-template).
## Instalación
1. Instalando dependencias
```sh
sudo apt-get install git python-dev python-pip
sudo pip install pymongo Flask
```
2. Bajamos la plantilla
```sh
git clone https://github.com/csuarez/juc-mongodb-api.git
cd juc-mongodb-api
```
3. Añadimos datos de prueba
```
mongoimport --db shop --collection catalog --file catalog.json --host 0.0.0.0
```
4. Arrancamos la API
```sh
python api.py
```
**NOTA**: El servicio se levanta en el puerto `5000`.