Skip to content

Latest commit

 

History

History
63 lines (46 loc) · 2.66 KB

README.md

File metadata and controls

63 lines (46 loc) · 2.66 KB

CRA with API

A Create React App project that comes with its own Node Server and a bunch of useful scripts.

See live demos of branches:

Key Features

  • ./ (Project Root)

    • Yarn Workspaces used to hoist all workspace dependencies

      • NPM scripts for:
      • setting the name of the project (in package.json and client/public/manifest.json)
      • checking the current node version is latest Node version
      • setting the current Node version as the Node version for the project
      • checking if dependencies are up to date
      • updating dependencies to their latest versions in all package.json files
      • see disk usage of the client build
      • running client, server or both in development mode
      • generating a production build
      • running the production build
      • deploying production build using ∆Now
    • The following NPM packages that apply to both Client and Server workspaces:

      • Prettier - apply consistent stying across client and server
      • Gitmoji - pretty git messages
  • ./client

    • Create React App
    • Dependencies manager by Yarn workspace
  • ./server

    • Run in development mode with Nodemon and Babel 7
    • Production build compiled with Babel 7
    • core-js is a dependency to enable the polyfills added by babel to be installed in production
  • ./scripts

    • Bash scripts for:
      • Killing the dev server process by port (for those times it doesn't terminate properly)
      • Prefixing npx to the gitmoji prepare-commit-msg hook, so gitmoji can be installed locally
      • Listing all the Now∆ deployments of the project
      • Removing all but the latest Now∆ deployment
      • Git Merging master into all other branches

Debugging in WebStorm

Medium articles about this project