This repository for global program test solution.
git clone https://github.com/Gauravbtc/test-globle-web.git
cd test-globle-web
User can add todo in list as well as perform delete any item from list
Step 1: Install react-js depending on your os
Step 2: Go todo-app directory
cd todo-app
Step 3: Install dependencies
npm install
Step 4: start application
npm start
Step 5: Check your web browser
It's a ruby application which is perform enqueue and dequeue elements using single integer variable.
Step 1: Go to ruby-test directory
cd ruby-test
Step 2: Install rvm based on your os
Step 3: bundle install
Step 4: Run Spec
rspec
Sample code before improvement
# authentication API
def auth
user = User.find(params[:username])
if user.check_password(params[:password])
render json: user
else
render json: { errors: ["wrong username or password"] }, status: :unauthorized
end
end
Step 1: Go to rails_test directory
cd rails_test
Step 2: check AuthenticationsController file
it contain information about how rails routing works, differences between rails routes vs Grap API
check below URL for more details
https://github.com/Gauravbtc/test-globle-web/tree/master/grape_api