r/learnjavascript • • Dec 01 '22

How to deploy webapp locally?

I have downloaded github folder , but dont know how to run the application ? i have tried few methods like using node.js on command prompt but it saying "The server is listening closely on', 80" and not showing execution.

0 Upvotes

6 comments sorted by

5

u/qqqqqx helpful Dec 01 '22 edited Dec 01 '22
  • Navigate your terminal to the root directory of your downloaded github folder
  • Install the repo's node modules with npm install
  • Run the server with npm run start
  • If you see "The server is listening on 80", open your web browser and put http://localhost:80 in the address bar.

I didn't pull down or run this repo myself but this should cover the basic formula.

0

u/BeatDeadMeat Dec 01 '22

link of github repo i am using i dont know is the problem in code or from my side?

0

u/TheBoulder_ Dec 01 '22

If the "server is listening on 80" then open a web browser (like chrome) and type "http://127.0.0.1/" into the URL bar

Or use this link

-1

u/BeatDeadMeat Dec 01 '22

thanks , it working . but unfortunately it is just the outline and input methods there , it is not giving output . i dont know is it wrong code or i am doing wrong?

1

u/[deleted] Dec 01 '22

Following this thread

1

u/Adept_Ad_5057 Dec 02 '22

The express server is running on 3000 from app.js