Skip to content

Commit 095c427

Browse files
committed
Add tutorials to get started with Scala.js, Vite, Laminar and ST.
1 parent fa39d7a commit 095c427

File tree

6 files changed

+1732
-0
lines changed

6 files changed

+1732
-0
lines changed

doc/tutorial/getting-started/index.md

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
layout: doc
3+
title: Getting Started with Scala.js, Vite, Laminar and ScalablyTyped
4+
---
5+
6+
This series of tutorials teaches you how to use Scala.js together with modern development tools.
7+
8+
If you have time, reading and applying them in order will give you more in-depth knowledge about the development environment.
9+
10+
If you are in a hurry, you can skip the ones you are not interested in.
11+
Each tutorial starts with a link to repo that you can clone to get off the ground.
12+
13+
In any case, make sure that you have the Prerequisites listed below covered.
14+
15+
## Tutorials
16+
17+
1. [Scala.js and Vite](./scalajs-vite.html): set up a hello world project ready for live reloading in the browser.
18+
2. [Laminar and ScalablyTyped](./laminar-scalablytyped.html): build UIs with Laminar, and integrate JavaScript libraries with ScalablyTyped.
19+
20+
## Prerequisites
21+
22+
In any case, make sure that you have the following tools installed first:
23+
24+
* [Scala and its development tools](https://www.scala-lang.org/download/)
25+
* [Node.js](https://nodejs.org/en/download/)
26+
27+
If in doubt, try the following commands in a terminal.
28+
They should all succeed, though the reported version numbers may differ.
29+
30+
{% highlight shell %}
31+
$ node -v
32+
v16.13.0
33+
$ npm -v
34+
8.1.0
35+
$ sbt -version
36+
sbt version in this project: 1.7.3
37+
sbt script version: 1.7.3
38+
{% endhighlight %}
39+
40+
We also recommend that you use an IDE for Scala.
41+
If you do not know what to pick, we recommend [VS Code](https://code.visualstudio.com/download/) with [the Metals extension](https://scalameta.org/metals/docs/editors/vscode/).

0 commit comments

Comments
 (0)