Skip to content

Webapp for storing and categorizing images from ZSI gallery. Browse and search for images by teachers appearing in them!

Notifications You must be signed in to change notification settings

sutaC/Gwiazdy-ZSI

Repository files navigation

Gwiazdy ZSI

ZSI Stars is an original project aimed at storing and categorizing photos of teachers from ZSI. The application allows you to browse photos and search for them according to the teachers appearing in them.

Author: sutaC

Technologies

Backend

  1. Typescript
  2. Expres
  3. Ejs
  4. MySQL

Frontend

  1. HTMX
  2. CSS

Other

  1. Docker
  2. PostHog

How to start app?

  1. Have installed docker and docker compose on your machine

  2. If necessary change application configuration in docker-compose.yml file (For example uncommenting dev options)

  3. In root directory run docker compose up

    If you don't want to see database logs run docker compose --attach app

  4. To log in as the default user after loading the database, use the following credentials:

    • Username: admin

    • Password: Passw0rd;

Database handling

  • To open database cli run npm run db-open
  • To dump database run npm run db-dump

    If you want to direct db dump to file use: npm run --silent db-dump > /path/to/file.sql

  • To dump database schema for db init run npm run db-dump:schema
  • To dump database data for db init run npm run db-dump:data

Documentation

Documentation is avaliable at DOCS.md file and are generated using tsdoc npm package.

To generate docs yourself run npm run doc

Logging (errors and other)

Loggs are saved to logs.log file in root directory of the project. You can access logs directly or by using admin panel on page. You can also clear server logs from that panel.

About

Webapp for storing and categorizing images from ZSI gallery. Browse and search for images by teachers appearing in them!

Topics

Resources

Stars

Watchers

Forks