Git Product home page Git Product logo

codetogive-2024's Introduction

Team 6 for Morgan Stanley's Code To Give Hackathon

Made with JavaScript and hosted on Firebase & Glitch!

Note

This website is currently in beta and bugs will be a-plenty! Please report bugs if you find any!

Tip

You can access the deployed website at codetogive6.web.app or follow the following instructions to build and deploy it yourself.

Clone the repo locally to your machine:

git clone https://github.com/CodeToGive-2024-Team6/CodeToGive-2024

Then install all packages and necessary files with npm from the frontend folder:

npm install

Once all necessary files are downloaded, you can run the website yourself using npm:

npm start

Alternatively, to deploy and test it elsewhere you can:

npm run build

Backend Setup and Initialization:

Navigate to the backend folder and install necessary packages using:

npm install

Install chart.js using (This will be required to run this web-app successfully):

npm install chart.js

Run the Express.JS server using:

npm start

Access the server by using the following local address in a browser:

localhost:3000

5 endpoints are currently created to fetch resident data (Use 1 as a resident_id to access test data):

localhost:3000/residentinfo/:resident_id
localhost:3000/objectives/:resident_id
localhost:3000/notes/:resident_id
localhost:3000/residentresources/:resident_id
localhost:3000/followups/:resident_id
localhost:3000/residentalldata
localhost:3000/caregivers
localhost:3000/caregiver/:user_id
localhost:3000/caregiverbyname/:first_name

localhost:3000/caregiverbyname/:last_name
localhost:3000/caregiverbyemail/:email

To add random data to the firebase database in the backend folder:

  • Place the service-account.json file in the backend folder

  • Install these python packages:

pip3 install faker
pip3 install firebase-admin
  • Run:
python3 add_data.py

To remove the random data from the firebase database in the backend folder:

  • Run:
python3 delete.py

Important

Nothing yet!

Feel free to leave any suggestions or improvements!

-> Team 6

codetogive-2024's People

Contributors

kunal112003 avatar jdrco avatar crystal11111 avatar mirap12 avatar chloenahyunkim avatar chetanty avatar mostafam12 avatar iefrances avatar mark8m avatar arongu321 avatar mnkjoshi avatar agu12345 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.