Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Getting Started
- 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).
- After you install RVM, you may be prompted to install the correct version of Ruby, i.e. `rvm install "ruby-2.6.5"`
- Ensure you have Node installed, the version likely does not matter and instructions can be found [here](https://nodejs.org/en/).
- 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/).
- Install Rails with `gem install rails`.
- If your installation of Ruby does not come with Bundler, you may need to install it with `gem install bundler`.
- Install Ruby dependencies with `bundle install` and Node dependencies with `npm i`, or `yarn install` if you have Yarn installed.
- 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`.
- You need to be running
- You may need to run migrations to update the SQLite schema. To do this, run `rails db:migrate`.
- To seed the database with example data run `rails db:seed`.
- Open up a browser and navigate to `http://localhost:3000/`.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement