1.Install NodeJs v12 or higher
2.Use NodeJs command prompt to install rest
3.Install Ruby - http://rubyinstaller.org/
4.Install Rails - gem install rails
5.Install Yarn - https://classic.yarnpkg.com/en/docs/install/#windows-stable
6.Close and re-open command prompt. Go to location where you want to create project
** For details on Ruby On Rails installation and developement. Please follow respective documentations and tutorials.
https://www.tutorialspoint.com/ruby-on-rails/rails-installation.htm
https://errorsandfixes.bookmark.com/webpacker-configuration-file-not-found-webpacker-yml
** This Ruby On Rails application uses 'rubygems', 'openssl', 'base64', 'securerandom', 'faraday' and 'json' libraries.
-
Create a new Ruby project as -
$ rails new ror_layerpayment
-
Copy following files -
app\assets\images\logo.png
app\controllers\test_controller.rb
app\views\test\*
config\routes.rb
-
Open ror_layerpayment\app\controllers\test_controller.rb
-
Modify values of Configurable parameters from line 12,13,14,15 as per credentials and callback path. Save the file.
-
Change to ror_layerpayment directory/folder and run server -
rails s
-
Open browser and access server e.g. http://localhost:3000
rm -rf node_modules
rails assets:clobber
yarn
rails webpacker:install
rails assets:precompile
./node_modules/.bin/webpack
gem 'faraday'
bundle install
bundle info faraday