jwoLondon / 30dayMapChallenge

Produce a map a day for each day in November
MIT License
42 stars 6 forks source link

How to run the code? #1

Open Raven888888 opened 7 months ago

Raven888888 commented 7 months ago

I am new to elm, I would like to know how to compile your elm code into js and html? I am particularly interested in d12Movement one.

Would appreciate if you could give me a simple quickstart!

jwoLondon commented 7 months ago

To view these pages with embedded Elm, you can use litvis (setup instructions on that page) which allows you to write Elm code and run it interactively as 'cells' in a markdown document. This uses a literate visualization 'notebook' approach equivalent to environments like Observable or Jupyter.

Raven888888 commented 7 months ago

Sorry you may have misunderstood me @jwoLondon

I would like to compile the code to js and html, so that I can use as a website in my school project, if that makes sense. The project does not allow the 'notebook' approach. Thanks.

jwoLondon commented 7 months ago

From within the notebook in VSCode you can right-click on the preview and save as HTML with embedded JS (or PDF).

Raven888888 commented 7 months ago

I see! I tried to do a hello-world example, but my vscode is not rendering... image

Raven888888 commented 7 months ago

Do you have any idea? @jwoLondon