git clone https://github.com/tamu-edu-students/TopMate-Clone.git
cd topmate-clone
- Install Ruby and Rails
- Install/Start local Postgres db
- Export environment variables
export TOPMATE_DB_DEV_HOST=localhost
export TOPMATE_DB_DEV_PORT=5432
export TOPMATE_DB_DEV_USER=<your postgres username>
export TOPMATE_DB_DEV_PASS=<your postgres password>
- Create/migrate db’s
rake db:create
rake db:migrate
rake db:seed
- optional but recommended, 95% of functionality requires a user's existence
- Run tests
rspec
rails cucumber
- Run server
rails server
- Start contributing
git clone git@github.com:tamu-edu-students/TopMate-Clone.git
cd topmate-clone
- Install Heroku cli
- Log into heroku
heroku login
- Create new heroku app
heroku create <new name for app>
- Add production postgres DB to app
heroku addons:create heroku-postgresql:mini
- Deploy repo to heroku
git push heroku main
- if you encounter errors, the heroku origin may not have been added to your repo, resource here
- Migrate DB
heroku run rake db:migrate
heroku open
- if you ran
rake db:seed
you can login with a temp user using- Email: johndoe@gmail.com
- Password: password
- Or visit John Doe's public page at the path
/public/JohnDoe
- if you ran
This should spin up a production instance of the repo and open the app at the created url. Remember, this app needs a user to be seeded to access the majority of the functionality.