GithubHelp home page GithubHelp logo

sound-shelter's Introduction

the Sound Shelter's donations management tool

Goals

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

Technologies

TypeScript Svelte Vite SASS CSS3 Prisma SQLite Markdown JavaScript NodeJS HTML5 NPM

Installation Instructions

  1. Click to open the repository.
  2. Click the "Fork" button. (This will create a user copy of the repository.)
  3. Open the Terminal application.
  4. In Terminal, use the "cd" command to navigate to where the local repository will live.
  5. In GitHub, click on the green "Code' dropdown.
  6. You will see three clone options. Select "SSH" and copy the SSH key.
  7. In Terminal, run "git clone [insert copied SSH key here]".
  8. In Terminal, use the "cd" command to navigate into the newly created directory. Enter npm i to install dependancies.
  9. Open the local repository in VS Code by typing: code .
  10. Type npm run dev into the terminal and view the app in your browser at http://localhost:5173/.
  11. Continue setup with database installs and running seed functions:

Prisma Setup and Seeding SQLite DataBase

  1. Delete the prisma directory. All you will need is the schema_.prisma and seed.ts files at the root of the project.
  2. In Terminal, run npx prisma init --datasource-provider sqlite to set up prisma folder, database and .env file
  3. Copy the contents of schema_.prisma file at the root of the project into the newly created file at prisma/schema.prisma
  4. Run npx prisma generate to generate Prisma Client.
  5. Move the seed.ts file from the root of the project into the prisma directory.
  6. Run npx prisma migrate dev --name init to create initial migration and sync database with schema in prisma.schema
  7. Run npx tsx prisma/seed.ts to seed database using the seed.ts file we moved from the root and into the prisma folder
  8. Run npx prisma studio to view database in the browser at http://localhost:5555/. You should now be able to view database content in reports and post successfully to database.

Screenshots

Screen Shot 2023-11-08 at 4 56 14 PM Screen Shot 2023-11-08 at 4 56 54 PM Screen Shot 2023-11-08 at 4 57 07 PM (2) Screen Shot 2023-11-08 at 4 58 10 PM

This app was made by El Brewster โœจ

You can find me at: Static Badge Static Badge

sound-shelter's People

Contributors

elbrewster avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.