Skip to content

abphilip-resources/WB-Netlify-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Web: Netlify React App

React App

npm install -g create-react-app         --> Install React App
npx create-react-app <name>             --> Create React App
cd <name>                               --> Go to the directory
npm start                               --> Create a development build
npm i                                   --> Install all packages

Serve

npm install -g serve                    --> Install Serve
npm run build                           --> Create a production build
npx serve -s build                      --> Serve the build directory

Netlify

npm install -g netlify-cli              --> Install Netlify CLI
npx netlify deploy                      --> Deploy to Netlify with development build
npx netlify deploy --prod               --> Deploy to Netlify with production build