Skip to content

This repo contains the code taught in Rock the JVM full stack course for ZIO, laminar and scalaJS , its basically a companies review website using purely functional paradigm of writing code through ZIO framework for the backend and laminar for the UI part

Notifications You must be signed in to change notification settings

ruelshakya15/zio-rite-of-passage

Repository files navigation

From the course Rock the JVM course ZIO Rite of Passage

This project demonstrates a full-stack Scala application using ZIO, Laminar, and Scala.js, focused on building a production-ready system with features like authentication, REST APIs, and real-time updates. The website serves as a platform for reviewing companies, showcasing skills in functional programming and real-world application development.

Front End

sbt: ~fastOptJS
npm run start
docker exec -it zio-rite-of-passage-db-1 psql -U docker
\c reviewboard
\d invites

Back End

sbt: ~compile
sbt: ~Test / compile

Create a User

http post localhost:8080/users email='something@something.com' password='test'

Login

http post localhost:8080/users/login email='user@example.com' password='test'

Add a Company

http post localhost:8080/companies name='Company' url='company.com' country='USA' location='City' industry='Tech' tags:='["IT"]' 'Authorization: Bearer <token>'

Search

http post localhost:8080/companies/search countries:='["Nepal"]' locations:='[]' industries:='[]' tags:='[]'

Get Stripe secret for local testing of webhook

stripe listen --forward-to http://localhost:8080/invite/webhook
<key>

sbt commands

stagingBuild / Docker / publishLocal docker save -o server.tar rockthejvm-reviewboard-staging:1.0.1 scp server.tar root@139.59.146.144:/staging docker load -i server.tar

image image

About

This repo contains the code taught in Rock the JVM full stack course for ZIO, laminar and scalaJS , its basically a companies review website using purely functional paradigm of writing code through ZIO framework for the backend and laminar for the UI part

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published