Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/negativetwelve/calaborate
Make real-time study sessions and collaborate with your classmates!
https://github.com/negativetwelve/calaborate
Last synced: 17 days ago
JSON representation
Make real-time study sessions and collaborate with your classmates!
- Host: GitHub
- URL: https://github.com/negativetwelve/calaborate
- Owner: negativetwelve
- License: other
- Created: 2013-03-27T18:20:41.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-04-10T08:53:12.000Z (over 11 years ago)
- Last Synced: 2024-10-19T15:59:56.574Z (28 days ago)
- Language: Ruby
- Homepage: http://calaborate.herokuapp.com
- Size: 531 KB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cal-aborate
### Installation
Make sure you're using Ruby 1.9.3
bundle install
rake db:migrate
rails serverGo to localhost:3000 to see your site.
### Testing Locally
You need to create a Facebook Developer App in order to test the app locally.
Go Here: https://developers.facebook.com/apps
Create a new app.
Set the FACEBOOK_APP_ID and FACEBOOK_SECRET environment variables.You might encounter problems with Postgres. If you have a Mac, use Brew to install Postgres.
brew install postgres
Make sure you restart your computer and if you're still having issues, run these commands:
rm -rf /usr/local/var/postgres
sudo sysctl -w kern.sysv.shmall=65536
sudo sysctl -w kern.sysv.shmmax=16777216
initdb /usr/local/var/postgres -E utf8
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
cp /usr/local/Cellar/postgresql/9.2.3/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
createdb calaborate_development
If that doesn't work, there are many StackOverflow posts that hopefully will be able to solve your problem.
### Working with the Database
Fire up the Rails Console
rails console
From there you can query the database, for example:
User.all
Course.allu = User.first
u.coursesThe first command gets all the users, the second gets all the courses. The third gets the first user on the app and the fourth line grabs all the user's courses.