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 .
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew wiki text
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r1 - 17 Jan 2022, shss\dhakchina
ReactJs
Log In
Register
Toolbox
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
Webs
Main
ReactJs
Sandbox
System
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki?
Send feedback