Giter Site home page Giter Site logo

2208-final-assessment-starter's Introduction

Final Assessment

Set Up

You will need to sign up for an api key for the Geocoding Service.

To get your repo set up, please do the following:

  1. Fork and clone this repository onto your local machine
  2. cd final_assessment_starter_2208
  3. bundle install
  4. rails db:{create,migrate}
  5. bundle exec figaro install
  6. In your application.yml, assign your geocoding api key with the variable api-ninja-key

Make sure it's working locally:

  1. Run bundle exec rspec. You should have 5 passing tests.
  2. Run rails s, and use postman to try out the endpoint GET /api/v1/capital_info for a country that you must provide in the parameters. For example, /api/v1/capital_info?country=france or /api/v1/capital_info?country=nigeria. You should see a json response that looks something like this:
        {
        "data": {
            "id": null,
            "type": "capital",
            "attributes": {
                "city": "Abuja",
                "country": "Nigeria",
                "country_code": "NG",
                "latitude": 9.0643305,
                "longitude": 7.4892974
            }
        }
    }

Get Prepped for the New API

In tomorrow's assessment, you'll be using the Places API. You'll need an API key for this service. Please read the following instructions carefully:

  1. Visit the Places API to see the capabilities of the API to consume.
  2. Follow these directions to set up an account and get your API key set up.
  3. We suggest that you set up Postman to call several different endpoints. Experiment with different parameters so you can see what they do, how you could use things to filter data, etc.

2208-final-assessment-starter's People

Contributors

megstang avatar shawnl93 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.