Git Product home page Git Product logo

pdap.io's Introduction

Public site

Project Overview

We're here to build a front-end foundation that can scale.

We're currently using Gatsby, and pages are written in MDAST Syntax Tree format. Down the road, we may migrate to a headless CMS like Strapi—we're also interested in more accessible languages like JSX.

Gatsby offers a vast plugin ecosystem and can consume content from many sources. PDAP is open source, so React components written for this Gatsby site can be used in future projects.

In a perfect world we'd be using a more vanilla Gatsby configuration without markdown or mdast—just javascript and html!

Info for Developers

Tech

This site is built with Gatsby, a React-based static site generator that utilizes GraphQL to query content.

If you are new to these frameworks you can familiarize yourself via their docs:

Etiquette

Head to #copywriting in Slack if you'd like to collect feedback from the wider group.

Test your changes locally first, if possible. Include screenshots with your PR if you're changing something visual.

Background

Markdown files in the top level content directory are sourced via the gatsby-source-filesystem plugin and parsed via the gatsby-transformer-remark plugin. The content is fed as props to the React templates via GraphQL page queries.

The static site content is hosted on Github Pages from the gh-pages branch. The static files are built and deployed to this branch automatically via GitHub Actions whenever changes are merged to the master branch.

Setup

  1. Clone the repository

    git clone https://github.com/Police-Data-Accessibility-Project/gatsby-pdap-frontpage.git

  2. Install dependencies

    npm install

  3. Start the development server

    npm start

The development preview can be accessed at localhost:8000 The GraphQL playground can be accessed at localhost:8000/___playground

Testing

Testing is configured according to Gatsby's Unit Testing docs.

You can run tests via the npm test command

Staging

Merge into the dev branch and visit pdap.dev.

pdap.io's People

Contributors

ericturner3 avatar jlintag avatar josh-chamberlain avatar milespratt avatar pythonidaer avatar rainmana avatar zgoulson 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.