Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dallinhuff/beautybard
Pure functional full-stack Scala web app for BeautyBard - a beauty product rating platform.
https://github.com/dallinhuff/beautybard
cats-effect cockroachdb http4s laminar scala scalajs skunk tapir
Last synced: about 1 month ago
JSON representation
Pure functional full-stack Scala web app for BeautyBard - a beauty product rating platform.
- Host: GitHub
- URL: https://github.com/dallinhuff/beautybard
- Owner: dallinhuff
- Created: 2024-04-27T22:13:00.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-10T10:12:33.000Z (8 months ago)
- Last Synced: 2024-10-22T03:08:26.720Z (2 months ago)
- Topics: cats-effect, cockroachdb, http4s, laminar, scala, scalajs, skunk, tapir
- Language: Scala
- Homepage:
- Size: 85.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BeautyBard
### Installation/Running
#### Client
(One time) To run the frontend dev server, you'll need to install the node dependencies in the `app` module.
```sh
$ cd modules/app
$ npm i
```Once the dependencies are installed, in a terminal window, run
```sh
$ sbt '~app/fastLinkJS'
```
to start the incremental compiler. This will listen for changes to source files
in the `app` and `common` modules, and re-build the ES/JS module for the vite project.In another terminal window, run
```sh
$ npm run dev
```
to start the vite dev server, which will listen for changes to the files generated from
the sbt task and automatically reload the page as updates are made.#### Server
(One time) To run the backend/api server, you'll need to create an `application.conf` file under
`src/main/resources` in the `server` module. See `application.conf.example` to see what needs to be set.To set up a Postgres/CockroachDB instance with the right tables, you can use the script in `sql/init.sql`.
Once you have the config file set up, run
```sh
$ sbt 'server/runMain co.beautyBard.Main'
```
to start the server.