You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/tutorial/index.md
+44-4
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,51 @@ layout: doc
3
3
title: Tutorials
4
4
---
5
5
6
-
Arguably, the most efficient way to learn new technology is to try it out yourself. Here, we have collected a set
7
-
of tutorials from simple to complete web app, to get you started right away!
6
+
This series of tutorials teaches you how to use Scala.js together with modern development tools.
8
7
9
-
*[Getting Started with Scala.js, Vite, Laminar and ScalablyTyped](./getting-started/)
10
-
*[Basic tutorial](./basic/) to get you started
8
+
1.[Scala.js and Vite](./scalajs-vite.html):
9
+
* Set up a hello world project ready for live reloading in the browser.
10
+
* Generate minimized production assets.
11
+
2.[Laminar](./laminar.html):
12
+
* Build UIs with Laminar using Functional Reactive Programming (FRP), a hybrid model between imperative and functional programming particularly well suited for UI development in Scala.
13
+
3.[ScalablyTyped](./scalablytyped.html):
14
+
* Integrate JavaScript libraries using ScalablyTyped.
15
+
16
+
If you have time, reading and applying them in order will give you more in-depth knowledge about the development environment.
17
+
18
+
If you are in a hurry, you can skip the ones you are not interested in.
19
+
Each tutorial starts with a link to a repo that you can clone to get off the ground.
20
+
21
+
In any case, make sure that you have the prerequisites listed below covered.
22
+
23
+
## Prerequisites
24
+
25
+
In any case, make sure that you have the following tools installed first:
26
+
27
+
*[Scala and its development tools](https://www.scala-lang.org/download/)
28
+
*[Node.js](https://nodejs.org/en/download/)
29
+
30
+
If in doubt, try the following commands in a terminal.
31
+
They should all succeed, though the reported version numbers may differ.
32
+
33
+
{% highlight shell %}
34
+
$ node -v
35
+
v16.13.0
36
+
$ npm -v
37
+
8.1.0
38
+
$ sbt -version
39
+
sbt version in this project: 1.7.3
40
+
sbt script version: 1.7.3
41
+
{% endhighlight %}
42
+
43
+
We also recommend that you use an IDE for Scala.
44
+
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/).
45
+
46
+
## Older tutorials
47
+
48
+
Here are some older tutorials, which may still provide value:
49
+
50
+
* The old [basic tutorial](./basic/)
11
51
*[Hands-on Scala.js](https://lihaoyi.github.io/hands-on-scala-js), an extensive tutorial in eBook format
12
52
*[SPA tutorial](https://github.com/ochrons/scalajs-spa-tutorial) for writing a
0 commit comments