Git Product home page Git Product logo

gbptm's Introduction

GBPTM

A suite of modules for Public Convenience Ltd's Great British Public Toilet Map

This documentation is oriented towards developers, if you'd like to learn more about our data and how to access it please refer to Toilet Map Explorer.

Getting Started

Prerequisites

  • nvm (or a node version matching the one specified in .nvmrc)
  • yarn
  • git
  • mongodb (for api development)

Installation

git clone [email protected]:neontribe/gbptm.git gbptm
cd gbptm
nvm install && nvm use
npm install -g yarn
yarn install

UI Development

The toiletmap ui is built with create-react-app. There are two components, the main ui (packages/ui), and the explorer (packages/explorer)

When working locally, both of these apps provide a proxy to the api server at https://gbptm-stage.herokuapp.com this saves you having to set up an API server locally. Should you wish to proxy to a different backend copy the relevant application's example.env file to .env and adjust the values of the PROXY variable to taste.

You can run a local development server with yarn dev from each application's folder.

API Development

The toiletmap api stores its data in a mongodb instance, you'll need one locally to perform api-related development. The data is managed via mongoose.js through the schema definitions in packages/api/db. The package exposes a REST api and a GraphQL endpoint. The REST api is scheduled for deprecation in late 2019.

gbptm's People

Contributors

hoolean avatar ob6160 avatar robopython avatar edpe avatar jthistle avatar greenkeeperio-bot avatar falconx avatar rosejbon avatar robpre 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.