Skip to content

Commit 85d2b77

Browse files
committed
Update readme
1 parent 29ffb49 commit 85d2b77

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

README.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The full description is available [here](https://martinbraquet.com/meeting-ratio
2121
- [x] Authentication (user/password and Google Sign In)
2222
- [x] Set up PostgreSQL in Production with supabase or prisma console (can stick with SQLite in dev / local)
2323
- [x] Set up hosting (vercel)
24-
- [ ] Ask for detailed info per profile upon registration (intellectual interests, location, cause areas, personality type, conflict style, desired type of connection, prompt answers, gender, etc.)
24+
- [x] Ask for detailed info per profile upon registration (intellectual interests, location, cause areas, personality type, conflict style, desired type of connection, prompt answers, gender, etc.)
2525
- [x] Set up page listing all the profiles
2626
- [x] Search through all the profile variables
2727
- [ ] (Set up chat / direct messaging)
@@ -39,7 +39,7 @@ Any action item is open to anyone for collaboration, but the following ones are
3939

4040
## Implementation
4141

42-
The web app is coded in Typescript using React as front-end and prisma as back-end. It includes:
42+
The web app is coded in Typescript using React as front-end and Prisma as back-end. It includes:
4343

4444
- [NextAuth.js v4](https://next-auth.js.org/)
4545
- [Prisma Postgres](https://www.prisma.io/postgres)
@@ -62,30 +62,23 @@ First, create an `.env` file:
6262
cp .env.example .env
6363
```
6464

65-
To ensure your authentication works properly, you'll also need to set [env vars for NextAuth.js](https://next-auth.js.org/configuration/options):
66-
65+
To ensure your authentication works properly, you'll also need to set the `AUTH_SECRET` [env var for NextAuth.js]
66+
(https://next-auth.js.org/configuration/options). You can generate such a random 32-character string with:
6767
```bash
68-
AUTH_SECRET="RANDOM_32_CHARACTER_STRING"
69-
```
70-
71-
You can generate a random 32-character string for the `AUTH_SECRET` secret with this command:
72-
73-
```
7468
npx auth secret
7569
```
7670

7771
In the end, your entire `.env` file should look similar to this (but using _your own values_ for the env vars):
78-
7972
```bash
80-
DATABASE_URL="prisma+postgres://accelerate.prisma-data.net/?api_key=..."
73+
DATABASE_URL="file:./dev.db"
8174
AUTH_SECRET="gTwLSXFeNWFRpUTmxlRniOfegXYw445pd0k6JqXd7Ag="
8275
```
8376

84-
Run the following commands to set up your database and Prisma schema:
85-
77+
Run the following commands to set up your local development database and Prisma schema:
8678
```bash
8779
npx prisma migrate dev --name init
8880
```
81+
Note that your local database will be made of synthetic data, not real users. This is fine for development and testing.
8982

9083
Start the development server:
9184

0 commit comments

Comments
 (0)