Git Product home page Git Product logo

code-challenge-reactjs-spa's Introduction

Code-Challenge-ReactJS-SPA
Challenge 1:
Objective - Generate capital for applied learn & earn opportunities for gig workers in the Washington, DC area. align digital infrastructure needs with local-first workforce development opportunities.


Goal - Define step-by-step process of cloning and exchanging endpoint. Goal - Render data from a JSON REST API endpoint into a static frontend HTML webpage template. Goal - Demonstrate that any frontend language can be used to fetch posts from an API endpoint across distributed network of repositories. Goal - Map out all platform and package dependencies.

Other Challenge Ideas:

  • Update implementation of this template and dependencies.
  • Use a different JavaScript framework (other than React) to render posts from this endpoint. New repo will need to be cloned.
  • Extend functionality of site by adding additional endpoints.
  • Search and Filter posts by post categories.
  • Add global CSS styling to all pages.
  • Propose your own idea at coopdevcenter.org (coming soon)

Related Reading: https://smartbear.com/learn/performance-monitoring/api-endpoints/

Keywords: REST API, JSON, WordPress, Headless CMS, Micro-Frontend. JavaScript

Request to be added as a contributor to CrowdWork on GitHub to be added to the codesandbox.io project URL for live coding environment.

Changelog 0.2 - 0.1 - Replaced homepage content. Replaced REST endpoint to fetch dcstakeholders.coop posts

Thanks to the original code sponsors - Technical Documentation Below.

React WordPress REST API Demo

Netlify Status

Create an single page app using the WordPress REST API and Create React App.

Development

Clone the repo:

git clone [email protected]:gregrickaby/React-WordPress-API-Demo.git

Install dependencies:

cd React-WordPress-API-Demo && yarn

Start dev server:

yarn start

Build a production ready app:

yarn build

FAQ

I don't see posts

It's because your web broswer is blocking CORS. Disable tracking protection in Firefox and/or any ad blockers.

I want to use my WordPress REST-API endpoint

  1. Open /src/config.js
  2. Change wordPressURL to match your website
  options: {
    wordPressUrl: "https://YOUR-WORDPRESS-WEBSITE-URL/wp-json/wp/v2/posts",
  },
  1. Run yarn start or yarn build to view your data

Built with Create React App, WordPress, and hosted on Netlify

code-challenge-reactjs-spa's People

Contributors

justin-franks avatar

Watchers

James Cloos 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.