Git Product home page Git Product logo

isabella232 / brigade-project-index-statusboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codeforamerica/brigade-project-index-statusboard

0.0 0.0 0.0 1.6 MB

A "statusboard" web app that is designed to display ongoing realtime information about each brigade's project-indexing opportunities.

Home Page: https://projects.brigade.network

License: Apache License 2.0

JavaScript 60.51% HTML 2.24% SCSS 14.71% CSS 3.56% TypeScript 18.97%

brigade-project-index-statusboard's Introduction

Brigade Project Index Statusboard and API

This repo contains two things:

  1. A statusboard web app to display ongoing realtime information about Brigade projects
  2. An api to download data from the brigade-project-index and expose it via JSON API

The statusboard is running in production at https://projects.brigade.network and the API is accessible at https://statusboard.brigade.cloud.

Running the statusboard locally

Once this is in place, you can install and run the app via yarn:

cd statusboard
yarn install
yarn start

This is a Create-React-App, so other commands come out of the box including yarn test and yarn build.

Running the API locally

The frontend will by default look for a local copy of the backend API for the React app to load data from.

cd api
yarn install
yarn start

Currently, the server fetches a new copy of the project index from Github every time (very expensive). If redis is running locally on port 6379, the API will use this to cache the results. We recommend installing it via Docker:

docker run --publish 6379:6379 redis:alpine

You don't have to run the API locally -- you can instead tell your local React app to use the production API using an environment variable like this:

REACT_APP_API_URL=https://statusboard.brigade.cloud yarn start

Other commands

npm run update-cache

This builds both the projectIndex cache and tags cache (data.json and tags.json respectively), and in deployment is run on a scheduler every 10 min.

To run the test suite, run:

yarn test

To access the server, use:

curl http://localhost:8080/api/data.json

brigade-project-index-statusboard's People

Contributors

giosce avatar kmooney avatar mmazanec22 avatar nihonjinrxs avatar nikolajbaer avatar rkiddy avatar tdooner avatar thadk avatar themightychris 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.