deconst / content-service

An API for storing, indexing and retrieving documentation
MIT License
4 stars 9 forks source link

Log content IDs #7

Closed smashwilson closed 9 years ago

smashwilson commented 9 years ago

Log the content IDs of content that's being published, requested, or deleted.

Also set up docker-compose to work for local development.

smashwilson commented 9 years ago

The GET message is a little pointless because you can see it in the URL, but it is a little easier on the eyes than the URL-encoded version.

ashl6947@MMN1F3FD58 ~/code/deconst-content-service (log-things=) $ docker-compose up
Creating deconstcontentservice_content_1...
Attaching to deconstcontentservice_content_1
content_1 | 
content_1 | > content-service@1.0.0 start /usr/src/app
content_1 | > node app.js
content_1 | 
content_1 | 2015-03-24T19:29:16.143Z - info: content-service listening at http://0.0.0.0:8080
content_1 | 2015-03-24T19:29:50.009Z - verbose: PUT /content
content_1 | 2015-03-24T19:29:50.011Z - debug: Storing content with ID: [https://github.com/deconst/deconst-docs/something]
content_1 | 2015-03-24T19:31:19.516Z - verbose: GET /content/https%3A%2F%2Fgithub.com%2Fdeconst%2Fdeconst-docs%2Fsomething
content_1 | 2015-03-24T19:31:19.516Z - debug: Requesting content ID: [https://github.com/deconst/deconst-docs/something]