Build React Native tutorial app
cd
intobuildRN
repobundle install
- make sure all the dependencies are installed properly, including Postgresqlrake db:create
rake db:migrate
rake db:seed
- this seeds the fixtures in the databaserails server
- go to
buildRN/db/seeds.rb
and add another chapter (follow the examples)
- React components are located in
buildRN/app/assets/javascripts/components
- it's possible, but tricky - this involves placing the file in the asset pipeline (more spec later)
- Open a separate terminal window go to the root of the
Rails
app and typerails c
orrails console
- You can then check the database - i.e.,
Chapter.all
,Chapter.first
,Chapter.find(title: 'Hello World')
, etc.