Multi-purpose web platform for managing supply requests and providing donors with information about needed supplies.
- Install dependencies:
npm install - Sync development environment variables:
npm run secrets
- You will be prompted for a password. Ask your EM to send it to you.
- NOTE: Windows users need to run
npm run secrets:loginandnpm run secrets:syncinstead
After this point, all dependencies and default environment variables will have been installed.
The default environment variable DATABASE_URL points towards a cloud database with mock data. If you are working on Prisma schema changes, you will need to host your own Postgres instance to prevent database/client conflicts. Postgres.app is a convenient way to setup a local instance for MacOS.
- After you start your instance, replace
DATABASE_URLin.envwith the database connection stringpostgresql://YOUR_SYSTEM_USERNAME:PASSWORD@localhost(replaceYOUR_SYSTEM_USERNAMEandPASSWORD) - Run
npm run seed:devto seed mock data into your database
Start development server with npm run dev
lint: Runs eslint on all source filesformat: Autoformats all sources filesdb:generate: Generates Prisma client assets based onprisma/schema.prisma(more info here)db:push: "Pushes" state of prisma schema to connected database, updating tables etc. (more info here)dev: Starts NextJS development serversecrets: Runs series of scripts to sync cloud environment variables to.env