Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
0a935eb
update
DaltonSchwanke Nov 13, 2023
884fcb9
Update rest_server.mjs
gcabdu Nov 13, 2023
9e06268
Merge pull request #1 from gcabdu/Gullet's
gcabdu Nov 13, 2023
2dd078c
Create README.md
yao07496 Nov 15, 2023
617eacb
Update
DaltonSchwanke Nov 15, 2023
e5b47f8
Changes made to pages and added css. Pages now loading form server
DaltonSchwanke Nov 23, 2023
3466896
update
DaltonSchwanke Nov 24, 2023
0e9bed8
Update
DaltonSchwanke Nov 25, 2023
8101855
first update
yao07496 Nov 25, 2023
0134a9a
Updated incidents with query string.
yao07496 Nov 26, 2023
b3f5624
Update rest_server.mjs
DaltonSchwanke Nov 27, 2023
046b8f8
Update rest_server.mjs
DaltonSchwanke Nov 27, 2023
aa3bdd8
Final Commit
gcabdu Nov 29, 2023
5940047
Project4 Start
gcabdu Dec 1, 2023
0c2d97c
Delete codes.html
DaltonSchwanke Dec 13, 2023
2f7910e
Delete home.html
DaltonSchwanke Dec 13, 2023
623b514
Delete incidents.html
DaltonSchwanke Dec 13, 2023
dd3ca3b
Delete neighborhoods.html
DaltonSchwanke Dec 13, 2023
39a9765
update
DaltonSchwankeVMLYR Dec 14, 2023
c4fb563
Update
DaltonSchwankeVMLYR Dec 15, 2023
234ae58
Update
DaltonSchwankeVMLYR Dec 17, 2023
6bdc4f2
Update
DaltonSchwankeVMLYR Dec 18, 2023
8ff44ac
Update
DaltonSchwankeVMLYR Dec 18, 2023
bb6d487
Update
DaltonSchwankeVMLYR Dec 18, 2023
1719c60
Update
DaltonSchwankeVMLYR Dec 18, 2023
d3b8bd0
Update
DaltonSchwankeVMLYR Dec 19, 2023
ef1a989
Update
DaltonSchwankeVMLYR Dec 19, 2023
6eec10c
Update
DaltonSchwankeVMLYR Dec 19, 2023
d5ee608
Update
DaltonSchwankeVMLYR Dec 19, 2023
39658cf
Update
DaltonSchwankeVMLYR Dec 19, 2023
38cae3d
Update
DaltonSchwankeVMLYR Dec 20, 2023
fccb3a6
submit works
gcabdu Dec 20, 2023
9629e31
Update README.md
gcabdu May 22, 2024
7ee65cc
Update README.md
gcabdu May 22, 2024
b59d942
Delete README.md
gcabdu May 22, 2024
92add8e
Create README.md
gcabdu May 22, 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
64 changes: 64 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# STP_Crime_Database

## Description
The STP_Crime_Database project is about managing and demonstrating crime data with an amazing RESTful API and an advanced front-end. We developed our users with Node.js and Express on the predominantly back-end and Vue.js on the front-end. This project was intended to make working with crime data super easy and highly efficient. Using the CRUD methods, it makes it easy for law enforcement and researchers to manage and evaluate crime reports, incidences, and patterns. Additionally, this project ensures our tool under real-time updates and shows different visualization to assist us to respond to an incident, prevent crime. It is thus our primary aim to build efficient tools to provide evidence-based crime analysis and develop strategies to respond to and prevent criminologically.

### Domain-Specific Overview
First, crime data management helps in understanding where and when crimes happen, and what types of crimes are more frequent. Then, by collecting and analyzing this data, we find patterns; for example, certain areas may be more likely to have a lot of crime or more crimes at night. This information is essential for law enforcement to provide the necessary resources more adequately and to come up with strategies to reduce cases. By using our project, users are able to see the data trends in real-time, which makes it easier to take a glance and make a judgment.


## Features

## Features
- RESTful API with CRUD operations
- Responsive front-end interface with Vue.js
- Modular and scalable project structure
- Environment configuration for development and production

## Prerequisites
- Node.js
- npm (Node Package Manager)

## Installation

1. **Clone the repository:**
```sh
git clone https://github.com/gcabdu/STP_Crime_Database.git

2. **Navigate to Project Directory:**
cd STP_Crime_Database

3. **Install Dependencies**
npm install
## Running Application

1. **Start Dev Server**
```sh
npm run dev

2. **Run Server:**
npm run

## Project Structure

- `dynamicServer/`: Contains the Node.js server setup.
- `node_modules/`: Node.js modules.
- `public/`: Public static files (CSS, HTML).
- `server.mjs`: Main server file.

- `src/`: Source code for the front-end application.
- `components/`: Vue.js components.
- `WeatherRow.vue`: Vue component for displaying weather data.
- `App.vue`: Main Vue.js application component.
- `main.js`: Entry point for the Vue.js application.
- `vite.config.js`: Configuration file for Vite.

- `package.json`: Configuration file for npm scripts and dependencies.
- `package-lock.json`: Lock file for npm dependencies.

## API Endpoints

- **GET /api/crimes**: Retrieve all crime data.
- **POST /api/crimes**: Add a new crime entry.
- **PUT /api/crimes/:id**: Update a crime entry.
- **DELETE /api/crimes/:id**: Delete a crime entry.
Binary file added image_67178753.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!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>

<!-- 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).foundation();
</script>
</body>
</html>
444 changes: 444 additions & 0 deletions marker.html

Large diffs are not rendered by default.

Binary file added marker.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading