Skip to content

Sample application using rails, reactJS, webpacker and Jest testing.

License

Notifications You must be signed in to change notification settings

mehreenmansur/rails-react

 
 

Repository files navigation

RAILS-REACT

Sample application to create web application using Ruby on Rails and reactJS. Please make sure you have installed ruby, nodejs, npm, yarn, mysql etc.

Intall ruby 2.4.2 using rbenv

rbenv install 2.4.2
rbenv rehash

System dependencies

gem install bundler
bundle install --path vendor/bundle

Check nodeJS version (>=v6.12.3)

node -v or nodejs -v

Node package manager version (>=3.10.10)

npm --version

Install yarn

sudo npm install -g yarn

Check out master branch

git fetch
git checkbout master

Install node packages using yarn

yarn install

Configuration

Save as following files as yml. Update database configuration and development secret key.

config/database.yml.example
config/secrets.yml.example
config/webpacker.yml.example

Database creation

bundle exec rake db:create

Database initialization

bundle exec rake db:migrate

Load seed data

bundle exec rake db:seed

Run application

bundle exec rails s

Deployment instructions

....

About

Sample application using rails, reactJS, webpacker and Jest testing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 55.7%
  • JavaScript 30.8%
  • HTML 12.1%
  • CSS 1.4%