cp .env.example .env
to create a copy of the environment file- copy paste missing secrets in .env file (e.g.
DISCORD_CLIENT_ID
,DISCORD_CLIENT_SECRET
) bun install
to pull the latest package changesbun db:start
to start the Postgres databasebun db:push
to push the prisma schema to the databasebun db:seed
to seed the databasebun db:drop
to drop the databasebun db:studio
to easily inspect the state of the databasebun dev
to start development server
After seeding the database, you may login using either this account or Discord.
Networks are invite-only systems that allow users to share reviews exclusively with people of their choice. When a network is loaded, the map will display only reviews permitted by the network. If the network is configured to load public reviews, it will showcase private network-only reviews alongside the public database of reviews.
model Review {
votes ?
comment String
images String[] // urls to S3 bucket
...
}
model Place {
latitude Float
Longtitude Float
...
} // or Location
model User {}
Either run bun db:drop
or follow the instructions below:
bun db:bash
to get into the container's shellpsql -U dev -d dev_db
to log into the default database- run
DROP DATABASE IF EXISTS memorable_db;
to drop the memorable database