Skip to content

abirkholz/react-node-ts-seed

Repository files navigation

react-node-ts-seed

A react + nodejs + typescript starter project with a module-based structure. This seed is an extrapolation of Facebook's create-react-app. It is modified to include an express server, enable API routing from nodeJS.

Dependencies:

  • NVM
  • typescript node_module installed globally

Commands

# compile the client and server tsx/ts files to js (outputs to ./build) npm build # compile client tsx to js npm run build-client # compile sass to css npm run build-css # compile server ts to js npm run build-server # start the app with server (as opposed to client side only) npm start # start the app with client server (dev only). Supports hot-reloading npm run start-client # start the express server npm run server