This describe all steps necessary to get the application up and running.
- ruby 2.7.1
- rails 6.0.3.1
- Ruby
- SQLite3
- Node.js
- Yarn
- ImageMagick
- Redis
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
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!
Run migrations:
rails db:migrate
Run seeder:
rake db:seed
TODO: Cover everithing with tests!
Run delayed jobs:
rake jobs:work
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!