https://github.com/jokester/scala-web-playground
a playground
https://github.com/jokester/scala-web-playground
Last synced: 2 months ago
JSON representation
a playground
- Host: GitHub
- URL: https://github.com/jokester/scala-web-playground
- Owner: jokester
- Archived: true
- Created: 2018-12-23T20:00:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-14T05:14:56.000Z (about 6 years ago)
- Last Synced: 2025-03-05T19:12:39.134Z (2 months ago)
- Language: TypeScript
- Homepage: https://scala-web-playground.jokester.io/
- Size: 436 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# scala-server-playground
a playground for scala/akka web server
## Apps
### chat-room
- (non-persistent) websocket chat room
- Web UI made with React + MUI### etc
and some example code to try `akka / scalikejdbc / pgsql / redis` combination
## Dev
### Start DBs
```sh
# run pgsql / redis containerscd dev-db && docker-compose up -d
```### PgSQL (shell)
```sh
# create db:createdb -h 127.0.0.1 -p 65432 --username=pguser scala_playground_dev
createdb -h 127.0.0.1 -p 65432 --username=pguser scala_playground_test# inspect db:
psql -h 127.0.0.1 -p 65432 --username=pguser scala_playground_dev
```### PgSQL (sbt)
```
# apply latest schema:sbt> flywayMigrate
sbt> test:flywayMigrate# clean schema:
sbt> flywayClean
sbt> test:flywayClean
```### Redis
```
redis-cli -p 59379
```## LICENSE
WTFPL