You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository provides the source code for [BayesBond](https://bayesbond.vercel.app), a web application where rational thinkers can bond and form deep 1-1
8
+
This repository provides the source code for [Compass](https://bayesbond.vercel.app), a web application where rational thinkers can bond and form deep 1-1
9
9
relationships in a fully transparent and efficient way. It just got released—please share it with anyone who would benefit from it!
10
10
11
11
To contribute, please submit a pull request or issue, or fill out this [form](https://forms.gle/tKnXUMAbEreMK6FC6) for suggestions and collaborations.
@@ -19,7 +19,7 @@ To contribute, please submit a pull request or issue, or fill out this [form](ht
19
19
- Open source
20
20
- Democratically governed
21
21
22
-
The full description is available [here](https://BayesBond.com/meeting-rational).
22
+
The full description is available [here](https://martinbraquet.com/meeting-rational).
23
23
24
24
## To Do
25
25
@@ -53,48 +53,87 @@ The web app is coded in Typescript using React as front-end and Prisma as back-e
53
53
54
54
## Development
55
55
56
-
After cloning the repo and navigating into it, install the dependencies:
Run the following commands to set up your local development database and Prisma schema:
85
+
### Installing PostgreSQL
86
+
87
+
Run the following commands to set up your local development database and Prisma schema. Run only the section that corresponds to your operating system.
88
+
89
+
On macOS:
90
+
```bash
91
+
brew install postgresql
92
+
brew services start postgresql
93
+
```
94
+
95
+
On Linux:
96
+
```bash
97
+
sudo apt update
98
+
sudo apt install postgresql postgresql-contrib
99
+
sudo systemctl start postgresql
100
+
````
101
+
102
+
On Windows, you can download PostgreSQL from the [official website](https://www.postgresql.org/download/windows/).
103
+
104
+
### Database Initialization
105
+
106
+
Create a database named `compass` and set the password for the `postgres` user:
107
+
```bash
108
+
sudo -u postgres psql
109
+
ALTER USER postgres WITH PASSWORD 'password';
110
+
\q
111
+
```
112
+
113
+
Create the database
83
114
```bash
84
-
npx prisma migrate dev --name init
115
+
npx prisma generate
116
+
npx prisma db push
117
+
npx prisma db seed
85
118
```
86
119
Note that your local database will be made of synthetic data, not real users. This is fine for development and testing.
87
120
121
+
### Tests
122
+
88
123
Make sure the tests pass:
89
124
```bash
90
125
npm run test
91
126
```
92
127
128
+
### Running the Development Server
129
+
93
130
Start the development server:
94
131
```bash
95
132
npm run dev
96
133
```
97
134
98
-
Once the server is running, visit http://localhost:3000 to start using the app. Now you can start contributing by making changes and submitting pull requests!
135
+
Once the server is running, visit http://localhost:3000 to start using the app. You can sign up and visit the profiles; you should see 5 synthetic profiles.
136
+
137
+
Now you can start contributing by making changes and submitting pull requests!
99
138
100
139
See [development.md](docs/development.md) for additional instructions, such as adding new profile features.
0 commit comments