-- Main.shssdhakchina - 17 Jan 2022
Simple Web Server "Serve"
Serve is a simple web server that can serve static files. This can be used to run
ReactJs during the development time to understand the concepts.
Installing Serve Package
Using the
Yarn Package Manager we can install the serve package as below.
First navigate to the folder that is to be served and run the below command.
yarn add serve
Running the folder as website
Make sure package.json is created in the current directory. Now run the below command and then navigate to
http://localhost:3000 to verify the site.
yarn serve .