Created with Create React App and the SERN template.
Makes it easy to connect the frontend to the backend out-of-the-box.
Runs the server for production
Runs the frontend and backend servers simultaneously in development mode.
Starts only the react development server (no backend)
Creates a production build
Runs tests (not implemented by default)
Ejects react app (won't be able to receive CRA updates)
project-root
├───public/ # static files for react app
│ ├───favicon.ico # icon displayed in browser tab
│ ├───index.html # includes all js
│ ├───logo192.png
│ ├───logo512.png
│ ├───manifest.json # used in PWAs
│ └───robots.txt # specifies web crawler rules
├───server/ # backend
│ ├───bin/ # server executable
│ ├───config/ # database config
│ ├───controllers/ # functions
│ ├───models/ # database models
│ ├───routes/ # api routes
│ ├───utils/ # shared functions
│ └───index.js # main server file
├───src/ # react source files
│ ├───components/ # reusable components
│ │ ├───Footer/
│ │ └───Navbar/
│ ├───routes/ # Router and pages go here
│ └───index.js # Main Entry Point
├───.env # store environment variables
├───.env.example # share env keys without exposing values
├───.gitignore
├───.prettierrc.json # prettier plugin configuration
├───package-lock.json
├───package.json # dependencies, scripts
└───README.md # guide
Very useful site to create the required favicons [https://favicon.io/favicon-converter/]