Coder Social home page Coder Social logo

graphql-take-home-assignment-core's Introduction

Code Challenge

About

This service is a GraphQL wrapper on top of SimplyRETS API's get_properties endpoint.

Prerequisites

  • NodeJS (version 14 or higher)
  • Yarn package manager

Installation

  • Clone this repository
  • Navigate to the folder this repository has been cloned to
  • Install dependencies: yarn
  • Run server: yarn start

How to use

  • Navigate to http://localhost:4000 and open QraphQL playground.
  • Please click on the "DOCS" tab to see the list of available queries and mutations.
  • Query "listing" is only available for authorized users. After successful authorization please click on "HTTP HEADERS" tab and add your authorization token:
{
	"Authorization": "Bearer <YOUR_TOKEN>"
}

Authorization

Potential improvements

  • Convert project to TypeScript
  • Create a data store for API users
  • Add "signup" endpoint where users can create their account in the system
  • Add expiration period for the generated tokens
  • Add support for more parameters supported by get_properties endpoint of SimplyRETS API
  • Add throttling or API rates limits
  • Move API secret and credentials from constants to environment variables

graphql-take-home-assignment-core's People

Contributors

acspock avatar dbaq avatar dependabot[bot] avatar hershmire avatar sdanishevsky 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.