Skip to content

This is a simple blog demo server, which provides an API to fetch comments.

Notifications You must be signed in to change notification settings

philipp-ullmann/blog-demo

Repository files navigation

Blog demo Build Status Code Climate

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!

API

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"}

Server development

Start server with:

docker-compose up -d

The server run's on port 3000. Run tests with:

docker-compose exec web lein test

Production server

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

About

This is a simple blog demo server, which provides an API to fetch comments.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published