Starting with a sketch
Start quickly with minimal fuss.
Here are two starting sketches you can choose:
Blank sketch (Github Codespace)
- Uses Typescript
- NPM & bundler for adding additional packages
Blank sketch with Websockets (Glitch)
- NPM for adding additional packages
- Set up with a Node.js websocket server
-
Create a folder for your sketch, open the folder in VS Code
-
Create a basic HTML file named
index.html
, for example:Note the
<script>
tag after the title. This is an import map and important to have. -
Create a Javascript file, saving as
script.js
, for example -
Serve the folder using Five/Live-Server extension in VS Code.