-
to view project planning and outline refer to
zToDo.md
in the main directory -
to view wishlist items refer to
zToDo.md
in the main directory
This project simulates a tool for staff working at a shelter. It's core functionalities include:
- Donation Registration: record donations and who donated
- Donation Distribution: record distributions of the shelter's inventory
- Provide a report that displays inventory amounts based on inventory type
- Provide a report for total donations given by a donor
- Click to open the repository.
- Click the "Fork" button. (This will create a user copy of the repository.)
- Open the Terminal application.
- In Terminal, use the "cd" command to navigate to where the local repository will live.
- In GitHub, click on the green "Code' dropdown.
- You will see three clone options. Select "SSH" and copy the SSH key.
- In Terminal, run "git clone [insert copied SSH key here]".
- In Terminal, use the "cd" command to navigate into the newly created directory. Enter
npm i
to install dependancies. - Open the local repository in VS Code by typing:
code .
- Type
npm run dev
into the terminal and view the app in your browser athttp://localhost:5173/
. - Continue setup with database installs and running seed functions:
- Delete the prisma directory. All you will need is the
schema_.prisma
andseed.ts
files at the root of the project. - In Terminal, run
npx prisma init --datasource-provider sqlite
to set up prisma folder, database and.env
file - Copy the contents of
schema_.prisma
file at the root of the project into the newly created file atprisma/schema.prisma
- Run
npx prisma generate
to generate Prisma Client. - Move the
seed.ts
file from the root of the project into theprisma
directory. - Run
npx prisma migrate dev --name init
to create initial migration and sync database with schema inprisma.schema
- Run
npx tsx prisma/seed.ts
to seed database using theseed.ts
file we moved from the root and into the prisma folder - Run
npx prisma studio
to view database in the browser athttp://localhost:5555/
. You should now be able to view database content in reports and post successfully to database.
This app was made by El Brewster โจ