Skip to content

wralith/paiwr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paiwr

What it does? Nothing, but hopefully it will get you few study dates? In theory?

graphic

Setup For Development

With Docker Compose

docker compose up

You might have to cd client && pnpm install until I fix node_modules related problems in docker-compose.

Without

# Client
cd client
pnpm install # Ofc you can use npm or yarn as well
pnpm dev

# Server
cd server
go run . # DB_CONN_STR and JWT_SECRET environment variables are required

# Postgres Database with Docker
docker run --name postgres-paiwr -d -p 5432:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=secret postgres:alpine

You can use gow to watch go files and rerun go run when something changed, similar to nodemon.

Stack

  • Server written in Go with bunch of libraries: Fiber, pgx, Squirrel etc.
  • Client written in Solid with Tailwind, you can clone clean template with eslint-prettier configured from Here

Endpoints

server default      ::     http://localhost:8080
client default      ::     http://localhost:3000

<server>/metrics                   Prometheus metrics
<server>/swagger or <server>/docs  API docs (Swagger UI and Rapidoc)
<server>/monitor                   Fiber Monitor

<server>/users                     User stuff...
<server>/topics                    Topic stuff...
<client>/...                       Client App

Todo

Lots of stuff...