knockout / knockout

Knockout makes it easier to create rich, responsive UIs with JavaScript
http://knockoutjs.com/
Other
10.43k stars 1.52k forks source link

Use Knockout on Replit #2573

Closed subtra3t closed 2 years ago

subtra3t commented 2 years ago

How do I use Knockout.js on Replit? Simply linking the library does not seem to work.

webketje commented 2 years ago

Replit works with Node/NPM. You need to npm init (which will set up a package.json), then npm i serve, configure the npm start script to run serve -l $HOST:$PORT ./public, create a .replit file like this one in the root dir: https://github.com/webketje/metalsmith-starter-resume/blob/master/.replit, and link the knockout script (e.g. from CDN) in your HTML file at ./public/index.html

subtra3t commented 2 years ago

Thanks!