Skip to content

sidmclaughlin/cra-with-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 58.7%
  • Shell 25.6%
  • HTML 12.3%
  • CSS 3.4%