Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 896 Bytes

README.md

File metadata and controls

23 lines (12 loc) · 896 Bytes

Node-React-Startup-Structure

A file structure for developing a Node and React app.

The Client Folder contains a basic create-react-app starter file.

The Server Folder contains a basic MVC folder structure for creating an api using Node and Express.

Commands that can be run from this root folder:

npm install - Installs all packages specified in the package.json file for both the client and server.

npm run start - checks if the environment variable 'NODE_ENV' is set to production, and runs either the development version or the production version of the project accordingly.

npm run start:dev - Runs the development version of the project.

npm run start:prod - Runs the production version of the project.

npm run build - Runs build in the client folder.

npm run client - Runs the client side code.

npm run server - Runs the server side code.