Skip to content

kathrynherod/ghgsdr-adoptable-dogs

Repository files navigation

GHGSDR Adoptable Dogs

This README outlines the details of collaborating on this Ember application. A short introduction of this app could easily go here.

Prerequisites

You will need the following things properly installed on your computer.

Installation

  • git clone <repository-url> this repository
  • cd ghgsdr
  • npm install

Running / Development

Code Generators

Make use of the many generators for code, try ember help generate for more details

Running Tests

  • ember test
  • ember test --server

Linting

  • npm run lint:hbs
  • npm run lint:js
  • npm run lint:js -- --fix

Building

  • ember build (development)
  • ember build --environment production (production)

Deploying

App is automatically deployed from github when main branch updated

Working with the Petstablished API

Trying to develop locally using this API was a nightmare. After reading through countless stackOverflow articles, finally stumbled upon this one.

I created a heroku app with cors-anywhere installed, and used that as my proxy for the endpoint. It ended up looking like this:

  • https://<myApp>.herokuapp.com/https://petstablished.com/api/v2/public/pets?public_key=<myKey>&<myQueryParams>

The payload coming back is a Uint8Array, and Ember handles that for me, but here's a quick link for how to handle conversion to JS object.

Further Reading / Useful Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published