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.yml
using the template atconfig/application.yml.sample
. Generate a new secret key usingrake secret
and paste the key into the file assecret_key_base
. Generate a new secret test key usingrake secret test
and paste the key into the file assecret_key_base_test
. -
Run
rake db:create
andrake db:migrate
to 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 s
to start the server -
On another terminal window, cd into dream-mobile and run
npm install
to install all the gems. Then, runnpm start
to start the application.