Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. # Getting Started
  2.  
  3. Make sure you have the correct version of Ruby installed, the ruby version can be found in `.ruby-version`, we recommend using a Ruby Version Manager `RVM` which can be found [here](https://rvm.io/rvm/install).
  4.  
  5. After you install RVM, you may be prompted to install the correct version of Ruby, i.e. `rvm install "ruby-2.6.5"`
  6.  
  7. Ensure you have Node installed, the version likely does not matter and instructions can be found [here](https://nodejs.org/en/).
  8.  
  9. It is recommended but not necessary to install Yarn which is a more efficient package manager for Node, instructions can be found [here](https://classic.yarnpkg.com/en/docs/install/).
  10.  
  11. Install Rails with `gem install rails`.
  12.  
  13. If your installation of Ruby does not come with Bundler, you may need to install it with `gem install bundler`.
  14.  
  15. Install Ruby dependencies with `bundle install` and Node dependencies with `npm i`, or `yarn install` if you have Yarn installed.
  16.  
  17. Start up the Rails app with `rails server`, if you are using the wrong version of Ruby you can fix that with `rvm use VERSION`.
  18.  
  19. You need to be running
  20.  
  21. You may need to run migrations to update the SQLite schema. To do this, run `rails db:migrate`.
  22.  
  23. To seed the database with example data run `rails db:seed`.
  24.  
  25. Open up a browser and navigate to `http://localhost:3000/`.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement