Please install Ruby or RVM
Ruby version: 2.6.3
$ ruby -v # ruby 2.6.3p62
After ruby install, run
$ gem install rails
Rails version: 6.0.1
$ rails -v # Rails 6.0.1
After Ruby and Rails installed, go to the application root folder (which have Gemfile), and run
$ bundle install # update dependencies
$ rails db:migrate
$ rails db:seed
This only two sample currencies into database without any transactions
if everything goes well, you can now see a console shows like this
=> Booting Puma
=> Rails 6.0.1 application starting in development
=> Run `rails server --help` for more startup options
Puma starting in single mode...
* Version 4.3.0 (ruby 2.6.3-p62), codename: Mysterious Traveller
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://127.0.0.1:3000
* Listening on tcp://[::1]:3000
Use Ctrl-C to stop
so you can go visit localhost:3000
or 127.0.0.1:3000
to see application
all test files location in ./test/, run commend test
$ rails test
update your production info in
- ./config/database.yml
- ./config/environments/production.rb
NOTICE: for production, please generate or secret_key_base in server and store in environment variables.