Frontend: - Replace Next.js with Vite + React + TypeScript - Add new component architecture (app-shell, sidebar, dashboard modules) - Implement product modules: FRAME, safety protocols, walkthrough checkin, campus/staff attendance, personality quiz, sign language, classroom timer - Add shadcn/ui component library with Tailwind CSS - Remove legacy generated components, stores, and pages Backend: - Add product migrations: frame_entries, user_progress, safety_quiz_results, walkthrough_checkins, communication_events, personality_quiz_results, campus_attendance_config/summaries, staff_attendance_records, content_catalog - Add corresponding models, services, and routes - Implement cookie-based auth with refresh token rotation - Add content catalog seeder with product content - Migrate to ESLint flat config - Switch from yarn to npm Infrastructure: - Update .gitignore for new tooling - Add project documentation (CLAUDE.md, docs/) - Remove deprecated config files and yarn.lock Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
#School Chain Manager - template backend,
Run App on local machine:
Install local dependencies:
yarn install
Adjust local db:
1. Install postgres:
-
MacOS:
brew install postgres
-
Ubuntu:
sudo apt updatesudo apt install postgresql postgresql-contrib
2. Create db and admin user:
-
Before run and test connection, make sure you have created a database as described in the above configuration. You can use the
psqlcommand to create a user and database.psql postgres --u postgres
-
Next, type this command for creating a new user with password then give access for creating the database.
postgres-# CREATE ROLE admin WITH LOGIN PASSWORD 'admin_pass';postgres-# ALTER ROLE admin CREATEDB;
-
Quit
psqlthen log in again using the new user that previously created.postgres-# \qpsql postgres -U admin
-
Type this command to creating a new database.
postgres=> CREATE DATABASE db_school_chain_manager;
-
Then give that new user privileges to the new database then quit the
psql.postgres=> GRANT ALL PRIVILEGES ON DATABASE db_school_chain_manager TO admin;postgres=> \q
Api Documentation (Swagger)
http://localhost:8080/api-docs (local host)
Setup database tables or update after schema change
yarn db:migrate
Seed the initial data (admin accounts, relevant for the first setup):
yarn db:seed
Start build:
yarn start