Go to file
efim b8e7dd894d debug stuff 2023-08-06 16:12:56 +00:00
backend/src/main/scala/industries/sunshine/planningpoker bug: secure cookie is not allowed without https 2023-04-30 00:58:24 +04:00
common/src/main/scala/industries/sunshine/planningpoker feat!: display room name 2023-04-30 09:55:49 +04:00
frontend/src/main/scala/industries/sunshine/planningpoker feat: styling cards as fan, tailwind + css vars 2023-05-07 19:35:03 +04:00
project initial way to run the server: 2023-04-23 18:33:29 +04:00
public npm create vite 2023-04-21 17:12:21 +04:00
.envrc npm create vite 2023-04-21 17:12:21 +04:00
.gitignore initial backend nix build - get jar 2023-04-29 19:43:17 +04:00
.scalafmt.conf scalafmt all 2023-04-25 10:25:36 +04:00
COPYING docs: license, readme and renaming into Kazbegi 2023-05-06 19:26:50 +04:00
Readme.org docs: local and prod execution 2023-05-07 19:53:31 +04:00
build.sbt bugfix: disallow joining room without nickname 2023-04-30 09:39:41 +04:00
counter.js npm create vite 2023-04-21 17:12:21 +04:00
flake.lock initial backend nix build - get jar 2023-04-29 19:43:17 +04:00
flake.nix debug stuff 2023-08-06 16:12:56 +00:00
index.html docs: license, readme and renaming into Kazbegi 2023-05-06 19:26:50 +04:00
javascript.svg npm create vite 2023-04-21 17:12:21 +04:00
main.js fix vite plugin configuration for mutliproject sbt 2023-04-24 09:17:32 +04:00
package-lock.json docs: license, readme and renaming into Kazbegi 2023-05-06 19:26:50 +04:00
package.json docs: license, readme and renaming into Kazbegi 2023-05-06 19:26:50 +04:00
postcss.config.js added tailwind 2023-04-21 18:24:24 +04:00
style.css added tailwind 2023-04-21 18:24:24 +04:00
tailwind.config.js fix tailwind search path 2023-04-23 18:07:00 +04:00
vite.config.js fix vite plugin configuration for mutliproject sbt 2023-04-24 09:17:32 +04:00

Readme.org

Readme

Licence:

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.

Running dev

need 3 teminals

start backend

in sbt

backend/run

continuous ScalaJS compilation

in sbt

project frontend
~fastLinkJS

start Vite

npm run dev
  • starting to serve frontend at localhost:5173
  • started forwarding /api requests to localhost:8080 - backend

Prod deployment (alpha version)

Nix managed server:

build and copy backend

sbt backend/assembly
scp -r backend/target/scala-3.2.0/backend-assembly-0.1.1.jar  <your-server>:~/Downloads/backend-assembly-0.1.1.jar

build and copy frontend

npm run build
scp -r dist/*  <your-server>:/var/www/planning-poker-grargh

start backend

nix shell --extra-experimental-features nix-command --extra-experimental-features flakes nixpkgs#jdk
java -jar ~/Downloads/backend-assembly-0.1.1.jar &
to kill / restart
ps aux | grep backend-assembly
kill <id of found backend java process>
TODO make nix home-manager module with systemd service

configure nginx

services.nginx.virtualHosts."planning-poker.sunshine.industries" = {
    root = "/var/www/planning-poker-grargh"; # copied manually
};

services.nginx.virtualHosts."planning-poker.sunshine.industries".locations."/api" = {
  proxyPass = "http://127.0.0.1:8080"; # started manually
  proxyRedirect = "off";
  extraConfig = ''
    rewrite ^/api/(.*)$ /$1 break;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;

    # Add the following lines for WebSocket support
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
  '';
};