Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 2.33 KB

setUPProjectV2.md

File metadata and controls

48 lines (37 loc) · 2.33 KB

Setting up the project

1. Install necessary programs

2. Clone repository

3. Setting up the environment

  • In VSCode, create a new .env file at the project repository root
  • Copy the text from the .env.example file and paste into the .env file
  • Change the PORT to 5432, USER, PASSWORD and DATABASE to kidsu
  • In the VSCode terminal, run npm install
  • Open the docker application, then in the VSCode terminal, run docker compose up -d
  • Again, in the VSCode terminal, run npx prisma migrate dev to initialize the database migrations (docker should still be open)

4. Start web application

5. Miscellaneous

  • Now you only have to do "npm run dev" every time you want to start the app. The Docker container also needs to be open in order to access database items, if there are any.
  • "npx prisma migrate dev" only needs to run if changes to the prisma schema are made.
  • There are currently no test files to run in order to import data for grants/grantors/donations/donors.
  • Donations and Donors Add pages are working in order to add data that way, otherwise grants/grantors will need to be manually added.
  • npx prisma studio can be used in order to manually make changes to the database, or external programs like Table Plus