Skip to content

Instantly share code, notes, and snippets.

View jming422's full-sized avatar

Jonathan Ming jming422

View GitHub Profile
@jming422
jming422 / workspace-layout.md
Last active July 29, 2021 03:30
Layout for sharing JS code between Create React App and a Node.js backend

This was written based off of https://docs.npmjs.com/cli/v7/using-npm/workspaces and using node v14.17.3 and npm 7.19.1.

Directory structure

I'm gonna use an example that's structured in a familiar way:

  • Create React App in /src
  • Backend server in /server
  • Shared code in /myproj-lib