GithubHelp home page GithubHelp logo

nytimes / oak-byo-react-prosemirror-redux Goto Github PK

View Code? Open in Web Editor NEW
13.0 7.0 1.0 75.65 MB

Home Page: https://nytimes.github.io/oak-byo-react-prosemirror-redux/

License: Other

Dockerfile 9.78% JavaScript 58.60% CSS 30.84% Shell 0.78%
documentation education nytimes prosemirror react redux

oak-byo-react-prosemirror-redux's Introduction

Build Your Own: React, ProseMirror, and Redux

This repository contains learning materials originally sourced and written for the Oak team at The New York Times. The courses within focus on developing an understanding of how the three tools that the Oak collaborative rich text editor relies on, React, ProseMirror, and Redux, actually work.

The content is deployed with GitHub Pages, and can be viewed at https://nytimes.github.io/oak-byo-react-prosemirror-redux/.

If you want to learn more about why we built this, and the kinds of problems it helped us solve, check out our NYT Open blog post [link TK].

Inspiration and credit

This educational project is heavily inspired by Rodrigo Pombo's excellent Build your own React, and relies heavily on the Code Hike remark plugin he developed.

Rodrigo's Build your own React is also directly linked as the "Build Your Own..." course for the React section of the syllabus.

How it works

This website is powered by Next.js. We use Next.js's Static HTML Export feature to build out static web pages, which are hosted with GitHub Pages.

The posts are authored as MDX files in the /posts/ directory. Code Hike is used to augment the code snippets, and next-mdx-remote allows us to load the MDX in getStaticProps. Check out the getStaticProps method in /pages/post/[[...slug]].js to see how we wire together MDX, Code Hike, and Nextjs using next-mdx-remote.

Local development

Prerequisites

You'll need Node.js installed, as well as the Yarn CLI. If you're using Node.js >= 16.9.0, you can install Yarn by simply running corepack enable. See the Node.js docs for more information about Corepack.

Alternatively, if you use VS Code, you can use the dev container configuration in this repo alongside the VS Code Dev Containers extension to develop in a Docker/Podman container.

Running the development server

Run yarn to install dependencies. Then run yarn dev to start the development server on port 3000. Any changes to the pages/ or posts/ directories will trigger a rebuild and rerender.

oak-byo-react-prosemirror-redux's People

Contributors

smoores-dev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

aimwhy

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.