Coder Social home page Coder Social logo

backend_assessment_1's Introduction

README

This README would normally document whatever steps are necessary to get the application up and running.

Things you may want to cover:

  • Ruby version
 2.7.2
  • Rails version
5.2.6.2
  • System dependencies
  • Rails / Ruby / Postgresql
  1. install rbenv
$ brew install rbenv ruby-build
  1. Set up rbenv in your shell
$ rbenv init
  1. Close your terminal window and open a new one so your changes take effect
  2. Verify that rbenv is properly set up using the rbenv-doctor script:
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor | bash
  1. install ruby version 2.7.2
$ rbenv install 2.7.2
  1. install rails
$ gem install rails --version=5.2.6.2

  1. you may need to add this line to bottom of your zshrc or bashrc to run ruby commands
eval "$(rbenv init -)"
  • How to run the test suite
$ bundle install
$ rails db:{drop,create}
  1. Run tests for requests
$ bundle exec rspec spec/requests
  1. Run tests for clients
$ bundle exec rspec spec/clients
  1. Run entire test suit
$ bundle exec rspec
  • Deployment instructions run the rails server
$ rails s

open a web browser to http://localhost:3000 and go to the following end points

/api/ping
/api/posts/tags=<your_topic_goes_here> -> options params
sortBy=<your_attribute_to_sort_by> and direction=<desc> to order results in
descending order

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.