rh9891 / phlask-map

Code behind the Phlask Web Map

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

phlask-map

Code behind the PHLASK Web Map

Running Locally

Yarn

  1. Ensure you have nodejs v12.20.0 installed on your machine
  2. Ensure you have Yarn installed on your machine
  3. Run yarn install
  4. Run yarn start

Docker (Recommended path for consistency across computers)

  1. You will need to have Docker installed: https://www.docker.com
  2. Once Docker is installed, run docker-compose build app and then docker-compose up app from the root of this repository.
  3. Navigate to localhost:3000 on your browser.

Want to add something new or develop/report a fix for a bug you found?

See our Contribution Guide to learn about our branching strategy and issue reporting etiquette, and more!

Branching strategy

png

Goals

The technical goals for this project are:

  • Usability on web and mobile
    • Currently planning on using a Progressive Web App (PWA) approach (via ReactJS) to solve this
  • Fast access to useful information about where you can get water nearby
    • Implemented via our Nearest Tap Route

Architecture

The PHLASK Map runs on a static page built with:

Testing

This project uses Cypress for testing.

Running Tests

This project has been configed to run all tests in the cypress/integration directory. To run these tests:

  1. cd into the root (top-level) directory of the project
  2. ensure that you have all requirements installed with yarn install or npm install
  3. run npm run test

Testing in Docker

TBD - This has not yet been tested.

Adding Tests

Please refer to the cypress.json file for testing configurations.

Tests follow the convention of being placed in a <test-file-name>.spec.js file where <test-file-name> is descriptive of the features/functionality the file tests for. Example, water-tap-viewing.spec.js tests feature related to viewing taps and the information displayed on the web page.

To add new tests, create a *.spec.js file at the top level of /cypress/integration.

Refer to /cypress/integration/example for the kinds of things cypress can test for -- NOTE the *.spec.js files are configured to not run when running npm run test.

The site runs on:

About

Code behind the Phlask Web Map


Languages

Language:JavaScript 92.1%Language:SCSS 4.2%Language:CSS 2.5%Language:HTML 1.1%Language:Dockerfile 0.1%