Giter VIP home page Giter VIP logo

Comments (7)

hx2A avatar hx2A commented on May 23, 2024

This will help the Python-Windows issue:

https://mail.python.org/pipermail/python-dev/2019-May/157586.html
https://devblogs.microsoft.com/python/python-in-the-windows-10-may-2019-update/

With this feature we can easily explain how to start a simple webserver for any OS.

from ml5-website.

joeyklee avatar joeyklee commented on May 23, 2024

@hx2A - yes! Thanks for these links.

I've personally switched to using the node.js http-server npm package: https://www.npmjs.com/package/http-server

Once node.js is installed, it is as easy as:

  • install the thing
npm install -g http-server
  • run the server
cd /to/the/folder/and/files/you/want/to/serve
http-server

In any case, we definitely should note the options for ml5 users :)

from ml5-website.

shiffman avatar shiffman commented on May 23, 2024

Indeed, I also cover it in this video in case it's helpful! https://youtu.be/FjWbUK2HdCo?list=PLRqwX-V7Uu6Zu_uqEA6NqhLzKLACwU74X

from ml5-website.

hx2A avatar hx2A commented on May 23, 2024

Definitely helpful! We can include that in the documentation. And it looks I did not make the best choice when I ran sudo npm install last week. :-)

from ml5-website.

joeyklee avatar joeyklee commented on May 23, 2024

@hx2A - I've started adding notes here: https://ml5js.org/getting-started/running-examples/

from ml5-website.

hx2A avatar hx2A commented on May 23, 2024

Great. Our documentation should also mention something about valid port numbers. Since the port number should be in the range of 1024 to 65535, beginners will get a strange error if they were to randomly pick a number like 500.

Today and tomorrow I'm busy with camp stuff and I'll continue working on this later in the week.

from ml5-website.

bomanimc avatar bomanimc commented on May 23, 2024

We now also support npm run develop, which will automatically start a page that hosts the examples and a locally-built version of the core library, both with live/hot-reloading!

Thanks for this suggestion; it definitely influenced our direction!

from ml5-website.

Related Issues (20)

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.