Book-a-Nook is an online platform where a user can look up for available community spaces like libraries and make reservation requests to the admin. The admin checks for the conflicts and sends the corresponding confirmations. Check full features and entities involved on the wiki home page.
The code is housed in a GitHub Repository.
- Rails 4.2.5
- RVM and Ruby >2.0.0 (tested on 2.2.1)
- PostgreSQL (Dev, Test)
Works well with:
- Ubuntu 14.04 + Ruby (2.2.2) + Rails 4.2.5
- MacOS X 10.9 + Ruby (2.2.2) + Rails 4.2.5
- Clone the repository:
git clone https://github.com/berkmancenter/bookanook.git
Or clone down from your own fork of the repository.
-
Go to the application's root directory in terminal:
cd bookanook
-
Run
cp config/social_keys.yml.sample config/social_keys.yml
. Add your own key and secret for Google authentication by setting up OAuth for your environment here. -
Create a
.env
file in the project root and populate with the preferred rails environment as follows:
RAILS_ENV=production
SECRET_KEY_BASE=<some key>
DEVISE_SECRET_KEY=<some key>
RAILS_SERVE_STATIC_FILES=true
-
Run Docker-Compose to build images:
docker-compose build
-
Setup Docker Database:
docker-compose run app rake db:create db:migrate db:seed
-
Run the docker images:
docker-compose up -d
-
To stop the app:
docker-compose stop
- Clone the repository
git clone https://github.com/berkmancenter/bookanook.git
Or clone down from your own fork of the repository.
-
Go to the application's root directory in terminal:
cd bookanook
-
If you are using RVM, create gemset for this application:
rvm gemset create bookanook
-
Use the gemset:
rvm gemset use bookanook
-
Install gems from Gemfile:
bundle install
Notes:
* You may need to run gem install bundle
first.
* If you're having issues installing gems with bundle install
, try running bundle update
first.
- Make necessary changes (postgresql username and password) in config/database.yml
Here's a resource to help setup a username and password for PostgreSQL on your machine.
-
Run
cp config/social_keys.yml.sample config/social_keys.yml
. Add your own key and secret for Google authentication by setting up OAuth for your environment here. -
Create database:
rake db:create
-
Run migrations:
rake db:migrate
-
Seed database with initial data:
rake db:seed
-
Start the server:
rails s
Note: If you're having issues starting the server, try running bundle exec rails server
.
- Visit the application at localhost:3000
Tests are run using RSpec, by simply running rspec
in your terminal.
If you receive an issue about "Web Console is activated in the test environment" that is preventing your tests from running, remove the following gem from your Gemfile:
gem 'web-console', '~> 2.0'
Then in your terminal, run the following:
$ gem install bundler
$ bundle install --without production
Please Log issues on GitHub.
The full list of contributors is available at https://github.com/berkmancenter/bookanook/graphs/contributors
- Create/Pick a relevant Issue: https://github.com/berkmancenter/bookanook/issues
- Code away!
- Send in a Pull Request.
NOTE: Will be posting a Contributing Guidelines Document soon.
Contact the following people if you get stuck:
- Justin Clark jdcc
- Gaurav Koley arkokoley
- Shubham Patel shubhpatel108
Copyright © 2017 President and Fellows of Harvard College