Files
Compass/README.md
MartinBraquet a555a6dcc6 Update readme
2025-07-28 13:18:15 +02:00

1.8 KiB

BayesBond

This repository provides the source code for BayesBond, a web application where thinkers can bond and form deep relationships. It's in active development and will hopefully be live soon.

To contribute, please submit a pull request or issue, or fill out this form for suggestions and collaborations.

Features

Implementation

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

Development

After cloning the repo and navigating into it, install dependencies:

npm install

Create a Prisma Postgres instance by running the following command:

npx prisma init --db

You now need to configure your database connection via an environment variable.

First, create an .env file:

touch .env

To ensure your authentication works properly, you'll also need to set env vars for NextAuth.js:

AUTH_SECRET="RANDOM_32_CHARACTER_STRING"

You can generate a random 32 character string for the AUTH_SECRET secret with this command:

npx auth secret

In the end, your entire .env file should look similar to this (but using your own values for the env vars):

DATABASE_URL="prisma+postgres://accelerate.prisma-data.net/?api_key=..."
AUTH_SECRET="gTwLSXFeNWFRpUTmxlRniOfegXYw445pd0k6JqXd7Ag="

Run the following commands to set up your database and Prisma schema:

npx prisma migrate dev --name init

Start the development server:

npm run dev

Once the server is running, visit http://localhost:3000 to start using the app.