This is a simple blog demo server, which provides an API to fetch comments.
Definition of task:
Develop a rich javascript client with it's main purpose to list all available comments. If an user clicks on a specific comment, the full comment description should unfold and be visible, as well as the corresponding video should start its playback right away. Compatibility is mandatory, as the developed client should operate and work with all current browsers, tablets (phablets) and mobile devices (phones, pods). Submission has to be done via html and js-code. Please send the source code with documentation to [email protected]. Good luck!
List all comments
Request:
GET => https://blog-demo-create.herokuapp.com/comments
JSON Response:
[
{"id": 2,
"title": "Clojure",
"content": "Clojure is a dynamic programming language..."},
{"id": 1,
"title": "Ring",
"content": "Ring is a Clojure web applications library..."}
]
Show details of a comment
Request:
GET => https://blog-demo-create.herokuapp.com/comments/1
JSON Response:
{"id": 1,
"title": "Ring",
"content": "Clojure is a dynamic programming language that targets the Java Virtual Machine",
"video": "/smile.mp4"}
Start server with:
docker-compose up -d
The server run's on port 3000. Run tests with:
docker-compose exec web lein test
The production server run's on heroku.
Web url:
https://blog-demo-create.herokuapp.com
Deploy with:
git push heroku master
View logs with:
heroku logs --tail