Team Fall 2024
Fall 2024 Heroku link: https://planxt.herokuapp.com
Fall 2024 PlaNXT code climate report: https://codeclimate.com/github/CSCE-606-Event360/Fall2024-PlaNXT
## Clone the repository
git clone https://github.com/CSCE-606-Event360/Fall2024-PlaNXT.git
cd Fall2024-PlaNXT
Verify you have Ruby, Rails, and Heroku CLI installed
- Check your Ruby version. If no ruby, follow this instruction.
- Check your Rails version. If no rails, run
gem install rails
. - Check your Bundler version. If bundle -v fails, run gem install bundler to install it. (Normally, though, installing the rails gem will also install bundler.)
- Verify the heroku command line tool has been installed in the development environment. If not, follow the instructions to install it.
In terminal:
ruby -v &&\
rails -v &&\
bundle -v &&\
heroku -v
## install the gem and setup the database
bundle install
rails db:migrate
## start server
rails s
-
If Bundler complains that the wrong Ruby version is installed,
-
rvm: verify that rvm is installed (for example, rvm --version) and run rvm list to see which Ruby versions are available and rvm use to make a particular version active. If no versions satisfying the Gemfile dependency are installed, you can run rvm install to install a new version, then rvm use to use it.
-
rbenv: verify that rbenv is installed (for example, rbenv --version) and run rbenv versions to see which Ruby versions are available and rbenv local to make a particular version active. If no versions satisfying the Gemfile dependency are installed, you can run rbenv install to install a new version, then rbenv local to use it.
Then you can try bundle install again.
-
In order to have the cucumber test be able to trigger javascript events, one have to make sure that selenium is installed. Here is the approach of doing it:
We have to manually download the correct version of the chromedriver. Follow this link to download the chromedriver: https://googlechromelabs.github.io/chrome-for-testing/#stable
Under stable, choose the corresponding OS you have:
Setup the chromedriver Mac After downloading the chromedriver, unzip the folder and move the chromedriver executable file to the /usr/local/bin folder.
# assume you are in the unzip folder dir
mv chromedriver /usr/local/bin
After moving chromedriver in the /usr/local/bin dir, one can start running the cucumber test
- If you face “Error: “chromedriver” cannot be opened because the developer cannot be verified. Unable to launch the chrome browser“, you need to go to usr/local/bin folder and right-click chromeDriver file and open it. After this step, re-run your tests, chrome driver will work.
Windows
-
After the ChromeDriver executable file is extracted and moved to the desired location, copy that location to set its path in System’s environment variables (the path where the chromedriver.exe is put).
-
Add the path in the Environment Variables
-
Add the following code in support/env.rb file
require 'selenium-webdriver'
require 'webdrivers'
Capybara.register_driver :selenium do |app|
options = Selenium::WebDriver::Chrome::Options.new
options.add_argument('--headless') # Optional
options.add_argument('--disable-gpu')
options.add_argument('--no-sandbox')
options.add_argument('--disable-dev-shm-usage')
Capybara::Selenium::Driver.new(app, browser: :chrome, options: options)
end
Capybara.default_driver = :selenium
run cucumber test
rails cucumber
rspec
In your heroku account, create a new app.
Deploy the github repo to heroku itself. under the deploy tab click github and connect go to manual deploy and choose the main branch to deploy press deploy branch press view skip next section to the final section of the readme
In your project terminal:
heroku login
git init
heroku git:remote -a <project_name>
# deploy
git add .
git commit -m "my first commit"
git push heroku main
# Attach postgres database in heroku
heroku run rails db:migrate
When goes to the deployment website and click the "Continue with Event360" button, it will shows an error page. This is because you have connected your deployed app to the CRM system.
To do this, go to https://events360.herokuapp.com/users and login as the admin user.
-
Go to Application Management Tab -> New Application
-
Fill in the information like this:

-
After creating the application, you will get an UID and Secret Token
-
Add thoses variable to the deployed app's Config Vars on Heroku:

- Add postgres under resources tab on Heroku
Ankitha Prasad ankithap@tamu.edu
Mahima Ganni mahima333@tamu.edu
Govind Joshi gvj84@tamu.edu
Sai Rohit saisivarohith@tamu.edu