Development Servers¶
Live Server VSCode Extension¶
You must have a .html
or .htm
file in the current folder. Just click on Go Live button on your VSCode taskbar.
SERVE¶
Install:
1 2 | yarn global add serve npm i -g serve |
If your static website is located in the ./build
folder, you can open it as follows:
1 | serve -s build |
Browse to http://localhost:5000
HTTP-SERVER¶
Install:
1 2 | yarn global add http-server npm i -g http-server |
REACT-SCRIPTS¶
These scripts allow you to run a React dev environment seeded via Create-React-App.
After installation, run:
1 2 3 4 | yarn start
yarn build
yarn test
yarn eject
|