PostrgreSQL/Express.js/Node.js/React/Tailwind web app designed to be your new study buddy.
The development server for the frontend (client) can be started with the following command:
cd client
npm install #(if new development dependancies need to be installed/updated)
npm startThe development server for the backend (server) can be started with the following command:
cd server
npm install #(if new development dependancies need to be installed/updated)
npm startThe app uses a Postgres database hosted on supabase.com. Edits to the database schema can be made in /server/prisma/schema.prisma. Additional info on Primsa syntax can be found here.
Initialize a .env file in the server directory with the required values.
Before running the app for the first time, a prisma client must be generated. You can do so with the following command:
cd server #(if not currently in server directory)
npx prisma generateIf you need to run migrations, you can do so with the following command:
cd server #(if not currently in server directory)
npm run db:migrateIf you need to inspect the databse, you can do so with the following command:
cd server #(if not currently in server directory)
npm run db:studio