Giter Site home page Giter Site logo

my-pet-api's Introduction

README

Prerequisites

The setups steps expect following tools installed on the system.

  • Github
  • Ruby [2.7.0]
  • Rails [6.0.2.2]
  • Sidekiq
  • PostgreSQL
Endpoinds
1) http://localhost:3000/api/v1/movies_seasons?page=1

VERB GET

Mandatory in HEADERS

API_TOKEN
USER_AUTH_TOKEN

2) http://localhost:3000/api/v1/seasons

VERB GET

Mandatory in HEADERS

API_TOKEN
USER_AUTH_TOKEN

3) http://localhost:3000/api/v1/movies_seasons

VERB GET

Mandatory in HEADERS

API_TOKEN
USER_AUTH_TOKEN

4) http://localhost:3000/api/v1/libraries

VERB POST

Mandatory in HEADERS

API_TOKEN
USER_AUTH_TOKEN
purchase: it is a id of the resource comes from the frontend

5) http://localhost:3000/api/v1/libraries

VERB GET

Mandatory in HEADERS

API_TOKEN
USER_AUTH_TOKEN
1. Check out the repository
[email protected]:carlossanchezp/my-pet-api.git
3. Create and setup the database

Run the following commands to create and setup the database.

bundle exec rake db:create
bundle exec rake db:setup
4. Cleaning all database and start
bundle exec rake db:reset
5. Create data
bundle exec rake db:seed
6. Testing Rspec
rspec spec
7. Rake for checking caducated purchases
bundle exec rake checking_caducated_wachings:library
8. Start the Rails server

You can start the rails server using the command given below.

bundle exec rails s

And now you can visit the site with the URL http://localhost:3000

my-pet-api's People

Contributors

carlossanchezp avatar

Watchers

James Cloos avatar  avatar

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.