Skip to content

LoserPanda/rails-example-project

Repository files navigation

Simple clicker app

Installation

Make sure you have a JavaScript runtime such as node installed.

If you do not have ruby installed

Install ruby version 2.6.0 with rbenv.

Install bundler with gem install bundler

If you already have ruby and bundler installed

run bundle install to install all dependencies specified in the Gemfile

For development version

Run migrations with rails db:migrate

Run rails s to start the project in development mode

For production version

Run migrations with rails db:migrate RAILS_ENV=production

Precompile your assets with rake assets:precompile

Run rails s -e production to start the project in production mode

(To get error output use RAILS_LOG_TO_STDOUT=true rails s -e production)

The application by default runs in port 3000