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
Backend
- Typescript
- Expres
- Ejs
- MySQL
Frontend
- HTMX
- CSS
Other
- Docker
- PostHog
-
Have installed
docker
anddocker compose
on your machine -
If necessary change application configuration in docker-compose.yml file (For example uncommenting
dev
options) -
In root directory run
docker compose up
If you don't want to see database logs run
docker compose --attach app
-
To log in as the default user after loading the database, use the following credentials:
-
Username: admin
-
Password: Passw0rd;
-
- 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 is avaliable at DOCS.md file and are generated using tsdoc
npm package.
To generate docs yourself run
npm run doc
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.