Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
8aef386
Testing Push
jonnydems Nov 13, 2023
93c6cd1
can show initial codes, modified the DbSelect to work for that
catherinekieffer Nov 13, 2023
ee4791b
starting to add the limit
catherinekieffer Nov 13, 2023
73dfbcb
added get methods for code and neighborhoods
nfriesen1 Nov 14, 2023
5334ac9
GET method for incidents to work and start_date a& end_date query mos…
nfriesen1 Nov 14, 2023
d82235b
added functionality for grid, neighborhood, and limit
nfriesen1 Nov 15, 2023
40349ba
added Noah's changes from main
catherinekieffer Nov 15, 2023
754ec0c
fixed neighborhood and codes
catherinekieffer Nov 15, 2023
e44a92e
Merge pull request #1 from catherinekieffer/catherine
nfriesen1 Nov 15, 2023
73a5c98
adding date time
nfriesen1 Nov 15, 2023
074f0d9
added code and returns data by most recent crimes
nfriesen1 Nov 17, 2023
fcfffee
can upload data to the database, but still need to check for the case…
catherinekieffer Nov 17, 2023
49d54ff
Merge pull request #2 from catherinekieffer/catherine
catherinekieffer Nov 20, 2023
4ef9bf2
fixed package.json
catherinekieffer Nov 20, 2023
bd2d9e7
Added DELETE /remove-incident
jonnydems Nov 26, 2023
ea41e80
Merge branch 'main' of github.com:catherinekieffer/webdev-rest
catherinekieffer Nov 28, 2023
c653082
trying to just delete it without checking if its in the database - st…
catherinekieffer Nov 28, 2023
6faa1ac
the delete works!
catherinekieffer Nov 28, 2023
cc8a9f3
added 500 error for new-incident if a case number already exists in t…
catherinekieffer Nov 28, 2023
9b2347b
change that allows start_date and end_date queries to work for incide…
nfriesen1 Nov 28, 2023
f679d67
small correction
nfriesen1 Nov 28, 2023
392877e
fix to sql error
nfriesen1 Nov 29, 2023
ed180f3
commented out one line of order_by in the /code that we forgot to get…
catherinekieffer Nov 29, 2023
7b7125a
new files
nfriesen1 Dec 1, 2023
0f3e963
fist commit
catherinekieffer Dec 1, 2023
4d71c09
start of a table
catherinekieffer Dec 1, 2023
e9c8181
Got table to display values from incidents in correct format.
nfriesen1 Dec 2, 2023
bee1839
App now displays number of crimes for each neighborhood on pin click
nfriesen1 Dec 7, 2023
8e56ac9
Create README.md
catherinekieffer Dec 11, 2023
4b98673
can now enter an address or a lat/long combo and will pan to the corr…
catherinekieffer Dec 12, 2023
edc9b6c
update address box on server startup. also started working on the pan…
catherinekieffer Dec 13, 2023
710a14b
Added Delete Functionality
jonnydems Dec 13, 2023
3482e7f
Merge remote-tracking branch 'origin/main' into jonny2
jonnydems Dec 13, 2023
636241e
Nothing
jonnydems Dec 13, 2023
8cb6aed
panning map now updates latitude and address
catherinekieffer Dec 13, 2023
26dd27d
Merge branch 'main' into noah
nfriesen1 Dec 13, 2023
306b178
merge
nfriesen1 Dec 13, 2023
7557a40
Merge branch 'catherine2' into jonny2
jonnydems Dec 13, 2023
2c10000
Crime markers added to map on select, removed on unselect
nfriesen1 Dec 14, 2023
ca5c57d
trying to get the initialize crimes to show only some of the table
catherinekieffer Dec 14, 2023
0d870c9
added Noah's changes, trying to get initializeCrimes to run each time…
catherinekieffer Dec 14, 2023
e537972
some comments
catherinekieffer Dec 15, 2023
7d05d4f
Added colors to rows by crime type and a legend.
nfriesen1 Dec 15, 2023
673ea38
added checkbox filters for the table
catherinekieffer Dec 15, 2023
1270ff1
Use promise.all() instead of many fetches
nfriesen1 Dec 15, 2023
f088839
Merge branch 'noah'
nfriesen1 Dec 15, 2023
76f68d9
panning on the map now updates the table correctly
catherinekieffer Dec 16, 2023
309bccb
fixed up code
catherinekieffer Dec 16, 2023
05394f7
merged main branch into catherine2, fixed all merge conflicts
catherinekieffer Dec 16, 2023
1edceca
Update README.md
catherinekieffer Dec 16, 2023
0f688ca
Update README.md
catherinekieffer Dec 16, 2023
dcfa4e1
Adding delete button to marker. Need to fix selected/unselected bug
nfriesen1 Dec 16, 2023
58aef0e
Merge branch 'noah'
nfriesen1 Dec 16, 2023
961a4d5
little adjustments to the panning
catherinekieffer Dec 16, 2023
2340ac0
added new button for the address versus the lat/long, clamped input v…
catherinekieffer Dec 16, 2023
e9c06f5
Merge branch 'main' into jonny2
jonnydems Dec 17, 2023
ae5bc59
Added the add new incident form
jonnydems Dec 17, 2023
24adbc1
Adding filters and changing api slightly to fix bug with filters
nfriesen1 Dec 17, 2023
e865d6c
Merge branch 'main' into noah
nfriesen1 Dec 17, 2023
6a94c52
adding boundaries again
nfriesen1 Dec 17, 2023
eb78d1c
new incident form
nfriesen1 Dec 17, 2023
855af4b
Adding files
jonnydems Dec 19, 2023
8f9ee73
Final edits for Home
jonnydems Dec 19, 2023
5e99ed4
Merge branch 'jonny2' into noah
nfriesen1 Dec 19, 2023
1e7256d
adding to package.json
nfriesen1 Dec 19, 2023
2d240f6
fix bug
nfriesen1 Dec 19, 2023
a271a33
Added alert and refresh page on add/delete incident
nfriesen1 Dec 19, 2023
8519625
fixing select button bug
nfriesen1 Dec 19, 2023
7b5057b
added video
nfriesen1 Dec 19, 2023
947f15c
video
nfriesen1 Dec 20, 2023
e54b705
Merge branch 'main' of https://github.com/catherinekieffer/webdev-rest
nfriesen1 Dec 20, 2023
f415f97
adding bio stuff
nfriesen1 Dec 20, 2023
d27733b
Update README.md
jonnydems May 19, 2024
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
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Webdev-rest
REST API Starter Code for Web Development Course

Instructions:
1. clone this repository on your machine
2. cd into webdev-rest
3. run "npm install" which will install all of the dependencies
4. on one terminal, run "node rest_server.mjs" which will start your local host which holds the api with all of the crime information
5. open another terminal and run "npm run dev" which will start the server on a local host.
6. Go to this local host and when prompted, open the local host that you are running the database on (from step 4)
Enjoy searching our website to learn about crimes in St. Paul!


# About the project
This project really focuses on identifying the areas of St. Paul that are the most dangerous or have a particular kind of crime. The viewer can view a map with all of the St. Paul Neighborhoods are marked and see the number of crimes for each neighborhood. The user can zoom in and out to help see where there are certain crimes commited and also select them from a table to be able to pinpoint where they are on the map. My hope is that this website will bring awareness of these dangerous areas and cause viewers to stop and think before they go to a certain area, or just to be more aware when they are in those areas. The ability to check certain boxes with certain types of incidents will help users visualize where there are more particular crimes in a certain area, and thus learn to either be more aware of those crimes in that area, or to avoid that area for those reasons. A human person’s dignity is one of the most important things about them, and these crimes take away from that dignity, whether that be through murder, or doing drugs. This website aims at increasing knowledge of crimes to show viewers just how often a human’s dignity is being taken away, and hopefully prompt them to be more aware of it and maybe even take action to try to prevent crime on our own streets! St. Thomas values the Dignity of human person's, and having the opportunity to learn more about crime in St. Paul has helped me see how my computer science skills could help increase awareness of the problems in our area.
40 changes: 40 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>St. Paul Crime Map</title>
<!-- Foundation CSS -->
<link rel="stylesheet" href="css/foundation.css">
<!-- Leaflet -->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=""/>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
crossorigin=""></script>
<!-- Custom Style -->
<link rel="stylesheet" href="css/style.css"/>
<!-- Vue App -->
<script type="module" src="src/main.js"></script>
</head>
<body>
<!-- Main app (map, crime table, and filters) -->
<div id="app"></div>

<div id="table"></div>

<!-- Foundation CSS Framework: include before closing <body> tag -->

<script src="js/vendor/jquery.js"></script>
<script src="js/vendor/what-input.js"></script>
<script src="js/vendor/foundation.js"></script>
<script type="application/javascript">
$(document).ready(function () {
$(document).foundation();
});

$(document).foundation();
</script>
</body>
</html>
Loading