Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
3ef13ff
Initialized for python project
ianwzhang1 Oct 14, 2023
fbec269
added line
gs1803 Oct 14, 2023
3cf5269
Merge remote-tracking branch 'origin/main' into main
ianwzhang1 Oct 15, 2023
fa89327
Refactor
ianwzhang1 Oct 15, 2023
72e145c
Merge remote-tracking branch 'origin/main' into main
ianwzhang1 Oct 15, 2023
7244c0f
Wrote simple_data_tool.py methods
ianwzhang1 Oct 15, 2023
cc3356b
specified types
gs1803 Oct 15, 2023
106252d
more commenting
gs1803 Oct 15, 2023
08496f9
viz and feedback update
gs1803 Oct 15, 2023
5f2fab7
update viz
gs1803 Oct 15, 2023
89a1592
update streamlit_viz
gs1803 Oct 15, 2023
69f3df5
added theme
gs1803 Oct 15, 2023
10caff4
Finished feedback documentation
ianwzhang1 Oct 15, 2023
cce6780
Updated requirements.txt
ianwzhang1 Oct 15, 2023
0b21fae
Cleaned up bad naming
ianwzhang1 Oct 15, 2023
1a4e7f5
Created distinct backend/frontend folders
ianwzhang1 Nov 12, 2023
dffb253
added toplvl gitignore
gs1803 Nov 12, 2023
1095524
file to add data to mongo db
gs1803 Nov 12, 2023
ba910b3
Frontend setup, db conn
ianwzhang1 Nov 12, 2023
71e9e2f
updated streamlit_viz connected to db
gs1803 Nov 12, 2023
71b2a50
updated title
gs1803 Nov 12, 2023
12c6013
added presentation
gs1803 Nov 12, 2023
941b77d
updated plot color
gs1803 Nov 12, 2023
2de218e
update viz
gs1803 Nov 12, 2023
f9513f7
update viz
gs1803 Nov 12, 2023
7c7b5a4
Finalize
ianwzhang1 Nov 12, 2023
9832f49
Merge remote-tracking branch 'origin/main' into main
ianwzhang1 Nov 12, 2023
ccca7c7
Update urls
ianwzhang1 Nov 12, 2023
6884149
Update urls
ianwzhang1 Nov 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions FEEDBACK.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# Feedback

1. Your team:
2. Name of each individual participating:
3. How many unit tests were you able to pass?
1. Your team: IG
2. Name of each individual participating: Ian Zhang, Guhan Sivakumar
3. How many unit tests were you able to pass? 13
4. Document and describe any enhancements included to help the judges properly grade your submission.
- Example One
- Example Two
- Example Three
- Utilized pandas library to easily filter and work with json data for faster performance
- Implemented a dynamic REST api that can query data and can execute the functions from simple_data_tool.py, deployable by running `python server.py`
- List of all functions and headers can be queried at http://localhost:8080/func, i.e. http://localhost:8080/func/get_num_of_open_claims_for_agent_and_severity?agent_id=24&min_severity_rating=1 will return `16`, just like the test case.
- JSON data can be retrieved directly using `get_x_x_data` accesses, i.e. http://localhost:8080/func/get_claim_handler_data.
- Implemented a visual map of disasters with optional time filtering. Deployable using `streamlit run streamlit_viz.py`.

5. Any feedback for the coding competition? Things you would like to see in future events?
- Very fun!
- Could have used more clarity with documentation

This form can also be emailed to [[email protected]](mailto:[email protected]). Just make sure that you include a link to your GitHub pull requests.
342 changes: 342 additions & 0 deletions backend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,342 @@
secrets.properties
# Java
# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*

# End - Java

# Python

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

# End - Python

# Node

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# End - Node
# VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix
# End - VSCode
2 changes: 2 additions & 0 deletions backend/.streamlit/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[theme]
base="light"
Loading