Welcome to the installation guide for the TeamHealth app, currently in development by Team 11 for MSCI 342 W2022! This guide will show you how to get set up on both a local development environment, and how to deploy this app to a production environment in Heroku.
This guide assumes that you have Ruby, Rails, and PostgreSQL installed on your target machine. If deploying on Heroku, it assumes that you already have a Github and Heroku account set up.
- Clone this repository to your machine
cd
into the repository- Run
bundle install
to install all the required gems - Run
rails db:create db:migrate db:seed
to create & seed the DB - Congratulations! You have now initialized the application for local use. You can now
boot the server using
rails server
and view the app. Default login for professor is [email protected]/professor. Note that in Codio, the command may need to be altered torails server -b 0.0.0.0
.
- Email us to request to be added to the Github repository
- When those permissions have been granted, login to the Heroku web portal
- Select "New" in the top right corner, then select "Create New App"
- Enter your desired app name and hosting location
- Select "Github" as your desired deployment method. If you do not see this option, go to the "Deploy" tab
- In "Connect to Github", select the "UWaterlooMSCI342" organization, and search for this repository's name ("TeamHealth")
- When this repository is displayed, select the corresponding "Connect"
- Scroll down to "Manual Deploy", select the
main
branch, and select "Deploy Branch" - When that is complete, scroll to the top right and select "More", then select "Run Console"
- Run the command
rails db:migrate db:seed
to configure & seed the DB - Congratulations! You have now deployed the application to Heroku. Select "Open App" in the top right to view the deployed application.
- Default login for professor is [email protected]/professor. Once logged in using the default credentials, use the change password functionality to modify the password to a secure one.
- Change your password by going to Logout/Account -> Change Password
- Create a new team by going to Create Team -> New Team
- Invite students to signup for the app by sending them the app's URL and applicable team code. Students will enter the team code during signup to assign them to the correct teams.
- Invite TAs and professors to signup for the app by sending them the app's URL and applicable admin code. Users will enter the admin code during signup so they are issued appropriate privileges.
- Access the help page by clicking 'Help' for more information!