GithubHelp home page GithubHelp logo

bookmarks-server's Introduction

How to run

Preparation

$ brew install docker-machine
$ brew install docker-compose

Setup environment

Firstly, make sure the server is up and running:

$ docker-machine start dev

and you can get the enviornment like this:

$ docker-machine env dev

Before you build the docker-compose, you may need to run this:

$ eval "$(docker-machine env dev)"

Build the image and run

$ docker-compose build
$ docker-compose up

To post some feeds to server:

$ curl -X POST [email protected] -H "Content-Type: application/json" -H "Accept: application/json" http://localhost:8000/api/feeds

And get it back to see if it works:

$ curl http://localhost:8000/api/feeds
[{"id":1,"url":"http://icodeit.org/2015/11/what-you-have-learnt-those-years/","title":"看看这些年你都学了什么?","author":"icodit.org","summary":"多年下来,我的Google Bookmarks里已经有近万条的书签。大部分内容是我在读过一遍之后就收藏起来的,也有很多看了一眼之后,觉得不错,然后收藏起来准备以后读的(当然,你也知道,再也没有打开过)。","publishDate":"2016-01-11"}]

bookmarks-server's People

Contributors

abruzzi 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.