Coder Social home page Coder Social logo

Comments (4)

jepek avatar jepek commented on September 14, 2024

You have to run this on the server eg. localhost

from egghead-angularjs-from-scratch-getting-started.

ashryanbeats avatar ashryanbeats commented on September 14, 2024

For anyone looking, I had the same issue and had to get help. Let me share what I learned.

Using http-server was the solution for me. (You'll need npm installed globally for this.)

npm install -g http-server

After installing http-server, in your terminal cd into the local directory for this repo. From there, you can run http-server in the command line.

If you have a document called index.html, you can just enter the command by itself:

http-server

Then in your browser go to localhost:8080 and you should see the site running.

However, this Eggly tutorial doesn't have an index.html so you'll need to make one or rename one of the existing files.

http-server may provide a way to run the site from another file (like, index.complete.html), but I'm not aware of how to do that.

Hope this helps!

from egghead-angularjs-from-scratch-getting-started.

justinjdickow avatar justinjdickow commented on September 14, 2024

you can use

http-server -o

to open the browser after the http server starts and you will see an index of the files. From there you can select index.complete.html, etc.

from egghead-angularjs-from-scratch-getting-started.

theianjones avatar theianjones commented on September 14, 2024

These are great solutions, I personally use live-server or httpster!

npm install -g live-server
or
npm install -g httpster

from egghead-angularjs-from-scratch-getting-started.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.