Skip to content

rangana/Namespacing-ReactJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Namespacing-ReactJS

namespacing approach to reactjs module consumption , This is the React comment box example from the React tutorial.

To use

There in only the nodejs simple server implementations included. It serve static files from public/ and handle requests to /api/comments to fetch or add data. Start the server with one of the following:

Install bower dependencies

in terminal switch to the public folder where bower.json file is located and run following command

bower install

Install Node dependencies

in terminal switch to the root folder of the project where package.json file is located and run following command

npm install

Run the node server

in terminal switch to the root folder of the project where server.js file is located run the following in the command

node server.js

And visit http://localhost:3000/. to see the project running

Changing the port

You can change the port number by setting the $PORT environment variable before invoking any of the scripts above, e.g.,

PORT=3001 node server.js

About

namespacing approach to reactjs module consumption

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published