Vincent Gagnon 101052796, Yufeng Liu 101258905
This application uses the drizzle orm to map the database content to typescript. Allowing for easy schema updating and querying.
git clone [email protected]:paranoidAndroid0124/comp3005final.git
Required software
- Postgres
- nodejs
- yarn
- Open the .env file in the root of the directory of the project.
- Update the DATABASE_URL to match your specific configure. Example: "postgres://user:pasdword@localhost:5432/db"
- open terminal in the root of the project and run
yarn install
copy the content of sql file found in src/drizzle and run it on your database using your tool of choice. (i.e: pgadmin , datagrip, pgcli, etc). This will generate the required table to run this application.
yarn start
This command will automatically generate test data in the database
yarn drizzle-kit generate:pg or use the shortcut "yarn sql". All sql files generated can be found under src/drizzle