Quick guide to set up and run the Collaborado Rails application locally.
Using rbenv (Recommended):
# Install rbenv
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash
# Add to shell profile (~/.bashrc, ~/.zshrc, etc.)
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
# Install Ruby 3.4.5
rbenv install 3.4.5
rbenv global 3.4.5Using RVM:
# Install RVM
curl -sSL https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
# Install Ruby 3.4.5
rvm install 3.4.5
rvm use 3.4.5 --defaultgem install bundlergit clone https://github.com/tamu-edu-students/606-project3-group5.git
cd 606-project3-group5bundle install# Create and migrate database
bundle exec rails db:create
bundle exec rails db:migrate
# (Optional) Load sample data
bundle exec rails db:seed# Compile SCSS stylesheets
bundle exec rails dartsass:build# Start Rails server
bundle exec rails server
# Or use development script (auto-compiles assets)
./bin/devVisit http://localhost:3000
# Run RSpec tests
bundle exec rspec
# Run Cucumber features
bundle exec cucumberrbenv install 3.4.5
rbenv local 3.4.5
bundle installsudo apt-get update
sudo apt-get install sqlite3 libsqlite3-dev
bundle installbrew install sqlite3
bundle installbundle clean --force
rm -rf .bundle
bundle installbundle exec rails db:drop db:create db:migrateThe repository includes test OAuth credentials for development.
To use your own credentials:
- Create project at Google Cloud Console
- Enable Google+ API
- Create OAuth 2.0 Client ID (Web application)
- Add redirect URI:
http://localhost:3000/auth/google_oauth2/callback - Create
.envfile:
GOOGLE_CLIENT_ID=your_client_id
GOOGLE_CLIENT_SECRET=your_client_secret
ALLOWED_EMAIL_DOMAINS=tamu.eduFor complete technical documentation, see TECHNICAL_DOCUMENTATION.md.