(root) | +--+ public (to be served by a web server) | | | +--- lib (where stuff from src folder end up once transpiled or copied) | +--+ src (to contain source code as .js and .jsx) | | | +--- *.js (Pure JavaScript files) | | | +--- *.jsx (JavaScript XML for React) | +--- package.json (contains some run-script commands and a few basic dependencies) | +--- node_modules (dir to hold npm packages for node to use) | +--- .gitignore (ignore src/ and node_modules/ folders)
run npm install
Will install @babel/babel-core @babel/babel-cli @babel/preset-react express to start with.
npm run-script compile-jsx
npm start