Requirements - HearstAT/ensemble GitHub Wiki
- Ruby - Version 2.3+
- Database (Choose One):
There are several ways to install Ruby for each OS
If wanting to use a dockerized postgres or using an external postges go ahead and skip to Ensemble Install
For basic Postgres commands go to https://www.postgresql.org/docs/9.6/static/tutorial-createdb.html
- Install Options
- Manual Windows Install Instructions
-
Chocolatey
choco install postgresql
- Commands Below need to be confirmed
- Manual Commands (Skip to Ensemble Install if wanting to use auto setup)
- Check if Running:
pg_ctl status
- NOTE: the user you create will need to match what is in config/database.yml, default is railstest1/railstest
- Useful Commands (For most Distros)
- Start:
pg_ctl start
- Stop:
pg_ctl stop
- Restart:
pg_ctl restart
- Start:
- Check if Running:
To run development or production you will want to install Postgres in some way. A simple way to do this on a Mac is Homebrew.
- Install Options
- Manual OSX Install Instructions
-
Brew
brew update && brew upgrade && brew install postgresql
- Manual Commands (Skip to Ensemble Install if waiting to use auto setup)
- Create a User
createuser -P -d -e railstest1
- NOTE: the user you create will need to match what is in config/database.yml, default is railstest1/railstest
- Useful Commands
- Check if Running:
ps auxwww | grep postgres
- Brew Installed
- Check Service List:
brew services list
- Restart:
brew services restart postgresql
- Start:
brew services start postgresql
- Check Service List:
- Check if Running:
- Create a User
- Install Options
- Manual Commands (Skip to Ensemble Install if waiting to use auto setup)
- Check if Running:
ps ef | grep postgres
- NOTE: the user you create will need to match what is in config/database.yml, default is railstest1/railstest
- Useful Commands (For most Distros)
- Start:
sudo service postgresql start
- Stop:
sudo service postgresql stop
- Restart:
sudo service postgresql restart
- Start:
- Check if Running:
Recommended only for testing and development
- Manual https://www.tutorialspoint.com/sqlite/sqlite_installation.htm
-
Chocolatey
choco install sqlite
SQLite that comes with OSX Should be sufficient
- Manual https://www.tutorialspoint.com/sqlite/sqlite_installation.htm
-
Brew
brew install sqlite