mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-04-04 06:51:45 -04:00
Add development.md
This commit is contained in:
21
docs/development.md
Normal file
21
docs/development.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# Documentation for development
|
||||
|
||||
### Adding a new profile variable
|
||||
|
||||
To add a profile variable (personality type, etc.), make modifications here:
|
||||
|
||||
* [schema.prisma](../prisma/schema.prisma)
|
||||
* [seed.ts](../prisma/seed.ts)
|
||||
* [profile.tsx](../lib/client/profile.tsx)
|
||||
* [schema.ts](../lib/client/schema.ts)
|
||||
* [page.tsx](../app/complete-profile/page.tsx)
|
||||
* [page.tsx](../app/profiles/page.tsx)
|
||||
* [ProfileFilters.tsx](../app/profiles/ProfileFilters.tsx)
|
||||
* [route.ts](../app/api/profiles/route.ts)
|
||||
* [route.ts](../app/api/user/update-profile/route.ts)
|
||||
|
||||
Then update the database:
|
||||
|
||||
```bash
|
||||
npx prisma migrate dev --name add-some-provile-variable
|
||||
```
|
||||
Reference in New Issue
Block a user