Python application that provides an API to remove boilerplate from articles
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Article.py
Dockerfile
LICENSE
README.md
app.py
docker-compose.yml
requirements.txt

README.md

README

run: docker-compose build docker-compose up

Then hit endpoint from: http://0.0.0.0:4000

ENDPOINTS

host/get-article/url

connect via:

mongo localhost/articles

create articles db:

db.createCollections('articles')

create article record:

db.articles.insert({ title:"Meow", content: "Meow meow", url: "http://adamfallon.com", date: new Date(), rating: 5, savedByAmount: 1, userId: "1" })

pull back records:

db.articles.find()

COPY DATA DIRECTORY TO NEW MONGODB INSTANCE

Copy the data from the previous container

sudo cp -r ~/data ~/data_clone

Start another MongoDB container

sudo docker run -d -p 37017:27017 -v ~/data_clone:/data/db mongodb