You are here: Foswiki>ReactJs Web>ServeServer (17 Jan 2022, shss\dhakchina)Edit Attach
-- 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 .
Topic revision: r1 - 17 Jan 2022, shss\dhakchina
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback