No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
client
.DS_Store
.gitignore
README.md
package.json
server.js
yarn.lock

README.md

DR Website Data

Server

  • Node.js, using an Express server to define API routes that the client can call
  • Each route returns the response from an external API request
    • Codebase: a Wordpress REST API endpoint that exposes theme data returned from ongoing curl requests to our websites
    • WPEngine: the WPEngine API (beta), exposes a limited amount of account data
    • Cloudflare: get a list of all cloudflare zones and associated DNS data for each
    • Other?

Client

  • React components
  • Top level component queries the backend server via fetch requests to the Express endpoints defined in server.js (for now), then saves the response data in state and passes it down as props to child components
  • Some components may need to send their own API request for performance reasons (only want to request the latest datum X from a given site when the user loads that site's dashboard instead of querying all 200 sites at once)?

Next Steps

  • Add authorization
  • Compile data into single page dashboard
  • Add unit and integration tests