Rest Web service with Silex and MongoDB for RoundTown application
PHP JavaScript CSS
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
tools
www
.gitignore
.gitmodules
LICENSE.txt
README.md

README.md

RoundTownWs

PHP, Silex and MongoDb Web Service for http://app.sanzvan.it

API 1.0

/feeds Will return list of feeds

/feeds?tag=:tag Will return list of feeds with tag

/feeds/:id Will return list of news of feed

/images Will return list of image

/places Will return list of places

/places/:id Will return details of place

/places/:id/images Will return list of images of the place

/tweets Will return list of tweets

/tweets?from=list Will return list of tweets from specific list

/tweets?from=search Will return list of tweets from specific search query

Trello Board

https://trello.com/b/T77KVRdx/sanzvan

Developer instructions

  • install VirtualBox

  • install Vagrant

  • add '192.168.140.12 api.roundtown.dev' to your /etc/hosts

  • git clone [your forked repo]

  • cd RoundTownWs

  • $ git submodule update --init --recursive

  • cd tools

  • $ vagrant up

  • $ vagrant ssh

  • create db

    $ mongo

    $ [copy content of /tools/data/createdb.txt on mongo shell]

  • create file www/config/settings.yml from settings.yml.sample

  • create file www/silex.log and set permission to 777

  • open browser at http://api.roundtownws.dev/

  • /workspace/www is the working directory

  • cd /workspace/app

  • npm install

Config Vhost

For production change SetEnv APPLICATION_ENV "dev" to SetEnv APPLICATION_ENV "prod"

License

This software library is licensed under GNU General Public License, Version 2.0