Skip to content

Commit 40e761f

Browse files
Show how to set up DEV
1 parent 0db3179 commit 40e761f

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

react.js

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,29 @@
1313
// gatsby -> very fast; plugins and themes available; hard to migrate; official gatsby hosting costs
1414
// blitz -> not very established; good doc but not for migration; fast even with API query; needs a server (except on Vercel)
1515
// redwood -> not very established; JAM stack; tricky migration; deploy everywhere; meant to be serverless
16-
// remix -> very recent
16+
// remix -> very recent
17+
18+
19+
20+
// SETUP DEV
21+
22+
// start a new react project from scratch -> https://jscomplete.com/learn/1rd-reactful
23+
cd projectFolder
24+
// create package.json
25+
npm init -y
26+
// express to run node server
27+
npm i express
28+
// install react & react-dom
29+
npm i react react-dom
30+
// install webpack, a module bundler
31+
npm i webpack webpack-cli
32+
// install babel
33+
npm i babel-loader @babel/core @babel/node @babel/preset-env @babel/preset-react
34+
// dev dependencies
35+
// nodemon or alternative to change server code without restarting node
36+
npm i -D nodemon
37+
// eslint -> add a .eslintrc.json file
38+
npm i -D eslint babel-eslint eslint-plugin-react eslint-plugin-react-hooks
39+
/* eslint-config-prettier eslint-config-airbnb eslint-plugin-cypress eslint-plugin-import eslint-plugin-jest eslint-plugin-jsx-a11y eslint-plugin-prettier */
40+
// jest for testing
41+
npm i -D jest babel-jest react-test-renderer

0 commit comments

Comments
 (0)