https://github.com/smeghead/scala-practice1
https://github.com/smeghead/scala-practice1
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/smeghead/scala-practice1
- Owner: smeghead
- License: apache-2.0
- Created: 2024-10-04T13:34:29.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-29T11:40:18.000Z (9 months ago)
- Last Synced: 2025-03-29T12:27:51.345Z (9 months ago)
- Language: Scala
- Size: 62.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# scala-practice1
### Development
```bash
docker compose run --rm scala bash
```
#### create new project
```bash
sbt new scala/scala3.g8
```
#### sbt
start sbt
```bash
~# sbt
[info] welcome to sbt 1.10.2 (Eclipse Adoptium Java 21.0.2)
[info] loading project definition from /root/project
[info] loading settings for project root from build.sbt ...
[info] set current project to scala-practice1 (in build file:/root/)
[info] sbt server started at local:///root/.sbt/1.0/server/27dc1aa3fdf4049b492d/sock
[info] started sbt server
sbt:scala-practice1>
```
run
```bash
sbt:scala-practice1> run
[info] running hello
Hello world!
I was compiled by Scala 3. :)
[success] Total time: 2 s, completed Oct 4, 2024, 1:53:04 PM
```
test
```bash
sbt:scala-practice1> test
MySuite:
+ example test that succeeds 0.016s
[info] Passed: Total 1, Failed 0, Errors 0, Passed 1
[success] Total time: 1 s, completed Oct 4, 2024, 1:53:07 PM
sbt:scala-practice1>
```