Install Rails
-
Clone the dream-rails repo
git clone https://github.com/calblueprint/dream-rails.git -
Install all appropriate gems
bundle install -
Create
config/application.ymlusing the template atconfig/application.yml.sample. Generate a new secret key usingrake secretand paste the key into the file assecret_key_base. Generate a new secret test key usingrake secret testand paste the key into the file assecret_key_base_test. -
Run
rake db:createandrake db:migrateto set up the database completely. -
Clone the dream-mobile repo
git clone https://github.com/calblueprint/dream-mobile.git
Install React Native
- Try running
npm start - Possible issues: expo/create-react-native-app#233,
- If faced above issue, try to change npm & node versions: npm version 5.5.1, node version 6.2.0
- Install Watchman
brew install watchman
Probably Aivant and Wilson: If you don't have postgres/postgresql (they are the same thing) installed:
- Install postgresql
brew install postgres brew services start postgresql- More info: https://medium.com/@bitadj/completely-uninstall-and-reinstall-psql-on-osx-551390904b86
-
cd into dream-rails and run
rails sto start the server -
On another terminal window, cd into dream-mobile and run
npm installto install all the gems. Then, runnpm startto start the application.