Welcome! This guide will help you make your first contribution to the project.
- Go to the project repository on GitHub
- Click the Fork button (top right)
- This creates your own copy of the repo
git clone https://github.com/<your-username>/<repo-name>.git
cd <repo-name>- This lets you sync with the original repository:-
git remote add upstream https://github.com/<original-owner>/<repo-name>.git
git remote -vpnpm install-
Create a
.envfile in the/packages/db&/apps/http-server: -
In
/packages/dbput it: -
DATABASE_URL=postgresql://postgres:postgres@db:5432/mydb- and in
/apps/http-serverput it :-
PORT=4000
JWT_SECRET=<yourJWTSecret>
DATABASE_URL=postgresql://postgres:postgres@db:5432/Qtrive
FRONTEND_URL=http://localhost:5173
docker-compose up --build- Always create a new branch for your work:
git checkout -b feature/<your-feature-name>feature/add-authfix/ws-connection-bug
-
Follow project structure:
-
apps/ → services (http-server, ws-server, frontend)
-
packages/db → Prisma + database
-
Keep changes small and focused
-
Follow existing code style
- Make sure everything works:
pnpm run devdocker-compose up- Write clear commit message
git add .
git commit -m "feat: add user authentication"- feat: new feature
- fix: bug fix
- docs: documentation
- refactor: code improvement
git push origin feature/<your-feature-name>- Go to your fork on GitHub
- Click Compare & Pull Request
- Add:
- Clear title
- Description of changes
- Screenshots (if UI changes)
- Before new work, sync your fork
git checkout main
git pull upstream main
git push origin main