How bansugyeong/crime-alert-service works
This repository combines a Seoul-crime information website with exploratory crime-rate analysis and forecasting work. The user-facing flow is browsing crime information on a map, with account features for posting and saving districts; the server handles those requests and queries MySQL. The analysis work combines crime and contextual data, then explores forecasting and regression. README statements support the broad analysis stages and planned capabilities; source excerpts verify selected web routes and calls, but do not establish how analysis outputs are deployed to the website.
Main entry points: server.js Web API server · index.html Crime website · crime_analysis_script.py Crime model analysis · pre_crime.ipynb Data preparation
Components 19
Crime information website
- Crime website
front/web/public/index.html - Interactive map
front/web/public/js/mapInit.js - Crime news
front/web/public/js/newsList.js - Prevention links
front/web/public/crimelink/범죄관련사이트URL.txt
Accounts and community
- Web API server
front/web/server.js - Login and signup
front/web/public/js/log.js - Community board
front/web/public/js/board.js - District favorites
front/web/public/js/mapInit.js - Admin console
front/web/public/js/admin.js - MySQL connection
front/web/public/js/db.js - Crime database
Crime analysis and prediction
- Data preparation
analysis/preprocessing/pre_crime.ipynb - Crime model analysis
machine learning/analyze/crime_analysis_script.py - Regression analysis
machine learning/analyze/regression - Time-series forecasts
machine learning/analyze/time_series - Crime rate maps
machine learning/crime/map_seoul.ipynb
Crime and context data
- Crime records
machine learning/crime - Population weather buildings
machine learning
Other components
- Website visitor
Connections 16
- Website visitor → Crime website: browses
README.md - Crime website → Interactive map: shows map
README.md - Crime website → Crime news: shows articles
README.md - Crime website → Prevention links: offers links
README.md - Community board → Web API server: requests posts
front/web/public/js/board.js - Login and signup → Web API server: handles login
front/web/server.js - District favorites → Web API server: requests favorites
front/web/public/js/mapInit.js - Admin console → Web API server: requests admin data
front/web/public/js/admin.js - Web API server → MySQL connection: queries database
front/web/server.js - MySQL connection → Crime database: connects to
front/web/public/js/db.js - Crime records → Data preparation: informs analysis
README.md - Population weather buildings → Data preparation: joins context
README.md - Data preparation → Crime model analysis: prepares features
README.md - Crime model analysis → Regression analysis: compares models
README.md - Crime model analysis → Time-series forecasts: explores forecasts
README.md - Crime records → Crime rate maps: visualizes crime
README.md