Skip to content
Reservations api to reserve things (such as meeting rooms)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bootstrap
public
.gitignore
.gitmodules
.travis.yml
CONTRIBUTING.md
README.md
artisan
composer.json
phpunit.xml
server.php

README.md

Reservations

Build Status

Reservations api to reserve things (such as meeting rooms)

Vocabulary

  • Thing: something that can be reserved. E.g., a meeting room.
  • Amenity: something that can be added to a reservation. E.g., wifi.
  • Reservation: a user reservation

Requirements

  • PHP => 5.3+
  • MySQL => 5.5

Installing

git clone git@github.com:FlatTurtle/Reservations.git
cd Reservations
php composer.phar install
# when deploying, be sure to chmod app/storage to 777
chmod -R 777 app/storage
# create a database for development purposes and add the credentials over here:
vim app/config/local/database.php
# Now add your hostname to the array in this file:
vim bootstrap/start.php

Finally, when doing a commit, please don't commit a filled out local/database.php!

Using artisan to add and delete stuff

You can use artisan to generate the right parameters for a HTTP request towards the API.

Usage:

./artisan reservations:addUser

./artisan reservations:addThing

//... todo

Testing

You can run the unittests by creating a mysql database called reservations_test. A user called travis should have access and the password should be blank.

# create a database for testing purposes and add the credentials over here:
vim app/config/testing/database.php
# run the tests
phpunit

For more questions, consult the wiki on github.

Copyright and license

2013-2014 - FlatTurtle

Code is licensed under AGPLv3

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.