App was created at Hackyeah 2025 Hackathon
- Topic: Digital Volunteer Center by Miasto Kraków
- Timeframe: 04-05.10.2025, 24 hours
https://github.com/tobi303x/HAckYeah-Ai-Backend
This project is licensed under MIT license.
- Node JS 22, version 22.14.0 or later
- pnpm package manager (installation guide)
- For people of restiance
npm install -g pnpm@latest-10
- For people of restiance
Run pnpm install to install all the necessary dependencies for the project
Create a new file that is not tracked by git, .env in the root of the project. Make sure to populate it will all the required environmental variables (example of those with corresponding values can be seen in .env.example). (yes, you can just copy it)
If you add a new env var to the application, please describe it in .env.example file as well
Run pnpm run dev to start a developer server at http://localhost:3000
Project is using a PostgreSQL database. ./start-database.sh contains an example docker-compose file for running the database locally.
schema.ts contains the schema of the database, as well as information about the providers, adapters and generators. You are free to modify the schema to suit you needs.
When you want to test if the schema you created works as expected, you can use pnpm db:push to update your database schema and generate prisma client, without create a new migration. Use it for prototyping until you are sure that your changes work flawlessly.
When finished, you need to make your schema changes persistant by running pnpm db:generate to create a new migration. Treat migrations as commits in Git - each migration should represent an unit of work.
Warning
Migration files should not be edited manually. Content of drizzle/ is auto-generated and any changes to it might be overwritten.