💻
LEANNA
  • "Hello World"
  • Discrete Fast Fourier Transform
  • mac显示隐藏文件
  • 5G冲浪
    • 上网冲浪看到的有用东西
  • Something useful...
    • Websites
  • Computer Graphics
    • Mathematical Morphology
    • GAMES101 Notes
  • OOP
    • OOP in JavaScript
  • Backend - notes
    • Setup database for websites
    • Run A PHP Server On A Mac Using Terminal
    • Run html file on localhost
  • Something useful...
Powered by GitBook
On this page

Was this helpful?

  1. Backend - notes

Run html file on localhost

PreviousRun A PHP Server On A Mac Using TerminalNextSomething useful...

Last updated 5 years ago

Was this helpful?

https://stackoverflow.com/a/48364392

You can run your file in http-server.

1> Have Node.js installed in your system.

2> In CMD, run the command npm install http-server -g

3> Navigate to the specific path of your file folder in CMD and run the command http-server

4> Go to your browser and type localhost:8080. Your Application should run there.