Code Monkey home page Code Monkey logo

hap-todo's Introduction

This software is ALPHA.

HAP ToDo

Build Status

Example ToDo Service demonstrating the Hypermedia Application Protocol.

Hosted HAP ToDo

A hosted version of HAP ToDo is available here. It's open to everyone and has only a volatile in-memory database. So don't expect it to hold your example data. The best way to try out HAP ToDo is by using the HAP Browser and entering hap-todo.alexanderkiel.net in the address bar.

Walkthrough

A walkthrough explaining HAP by using HAP ToDo as example is available here.

Usage with Leiningen

To start the service with leiningen, run the following command

lein with-profile production trampoline run

Usage on Heroku Compatible PaaS

This application uses the following environment vars:

  • PORT - the port to listen on

If you have foreman installed you can create an .env file listing the environment vars specified above and just type foreman start.

Docker Image

There is a docker image of HAP ToDo available on Docker Hub. You can run the latest version using:

docker run -d -p 8080:80 --name hap-todo akiel/hap-todo

Development

You can start a REPL with lein repl. After it is up, go into the user namespace which is located in under dev. There is a comment block "Init Development". Just invoke the function:

(startup)

You should be able to see the ToDo service running at port 8080. If you like to specify a different port, you can do it in the .lein-env file like so

{:port "5004"}

License

Copyright © 2015 Alexander Kiel

Distributed under the Eclipse Public License, the same as Clojure.

hap-todo's People

Contributors

alexanderkiel avatar knoppiks avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.