GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - informatyzacja/SWv2: Electoral system for the WUST Students' Union

This repository was archived by the owner on Nov 23, 2024. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

45 Commits
45 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.images
.images
 
 
root
root
 
 
static
static
 
 
sw-admin
sw-admin
 
 
sw-archive-vote-symlinks
sw-archive-vote-symlinks
 
 
sw-close-poll
sw-close-poll
 
 
sw-database
sw-database
 
 
sw-mailsender
sw-mailsender
 
 
sw-openresty
sw-openresty
 
 
sw-postfix
sw-postfix
 
 
sw-start-planned-mailing
sw-start-planned-mailing
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
Vagrantfile
Vagrantfile
 
 
bootstrap.sh
bootstrap.sh
 
 
config.py
config.py
 
 

Repository files navigation

System Wyborczy v2

logo

Uruchamianie (Linux, macOS, Windows)

Aby uruchomić developerską wersję Systemu Wyborczego potrzebny jest Vagrant.

$ git clone https://github.com/informatyzacja-sspwr-projekty/SWv2.git
$ cd SWv2
$ vagrant up

Wykonanie tych komend stworzy maszynę wirtualną w której będą włączone wszystkie komponenty Systemu.

Po wykonaniu strona administratora powinna być dostępna na http://localhost:8080/admin, z loginem admin i hasłem haker7, a komenda vagrant ssh powinna otworzyć shell na maszynie wirtualnej.

Aby wyłączyć maszynę wirtualną po skończeniu pracy można wykonać:

$ vagrant halt

Logi i status

Aby zobaczyć status wszystkich usług należy w shellu otwartym przez vagrant ssh wykonać:

$ sw-status

Aby zobaczyć status jednej usługi można użyć systemctl z systemd (w shellu otwartym przez vagrant ssh):

$ systemctl status sw-close-poll

Aby zobaczyć logi wszystkich komponentów w czasie rzeczywistym należy w shellu otwartym przez vagrant ssh wykonać:

$ sw-logs

kolorami zaznaczone są nazwy usług systemu

Aby zobaczyć logi jednej usługi można użyć journalctl z systemd (w shellu otwartym przez vagrant ssh):

$ journalctl --pager-end --unit=sw-close-poll
$ # lub, krócej
$ journalctl -e -u sw-close-poll

lub, aby zobaczyć logi skrolujące w czasie rzeczywistym (w shellu otwartym przez vagrant ssh):

$ journalctl --lines=all --follow --unit=sw-close-poll
$ # lub, krócej
$ journalctl -n all -f -u sw-close-poll

Aby zrestartować wszystkie usługi (przy zmianie kodu w pythonie) (w shellu otwartym przez vagrant ssh):

$ sw-restart

lub, aby zrestartować jedną usługę z użyciem systemctl z systemd (w shellu otwartym przez vagrant ssh):

$ systemctl restart sw-close-poll

Komponenty

sw-admin

Aplikacja we Flasku z panelem administratora

sw-archive-vote-symlinks

Usługa pozbywająca się tokenów z zamkniętych głosowań

sw-close-poll

Usługa zamykająca głosowania gdy ich czas zakończenia nadejdzie

sw-database

Opis i skrypty dla bazy danych Postgresql

sw-mailsender

Usługa wysyłająca maile dla głosujących

sw-openresty

Serwer HTTP(s)

sw-postfix

Serwer SMTP przekazujący maile od sw-mailsender do WCSS

sw-start-planned-mailing

Usługa rozpoczynająca zaplanowaną w czasie wysyłkę maili

About

Electoral system for the WUST Students' Union

Resources

Readme
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.