Skip to content

gsorry/ror

Repository files navigation

Ruby On Rails Example

This describe all steps necessary to get the application up and running.

Ruby version

  • ruby 2.7.1
  • rails 6.0.3.1

System dependencies

  • Ruby
  • SQLite3
  • Node.js
  • Yarn
  • ImageMagick
  • Redis

Download

Download and unpack zip archive or clone repository:

git clone https://github.com/gsorry/ror.git

Then install dependencies:

bundle install
yarn install -check-files

Configuration

Edit config/environments/development.rb and change redis servers if needed:

cache_servers = %w(redis://localhost:6308/0)

Toggle cache on/off for development environment:

rails dev:cache

Edit app/mailers/application_mailer.rb and config/initializers/devise.rb and change default from and sender email address:

TODO: Put this address to environment variable and change config files!

Database creation

Run migrations:

rails db:migrate

Database initialization

Run seeder:

rake db:seed

How to run the test suite

TODO: Cover everithing with tests!

Services (job queues, cache servers, search engines, etc.)

Run delayed jobs:

rake jobs:work

Deployment instructions

To run application in development environment just start built in server:

rails server

One user is created in database initialization step. It can be used to login for a first time:

  • email: admin@test.com
  • password: admin01

IMPORTANT: Configuration for production environment is not configured!

About

Ruby On Rails Example

Resources

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors