A accident report website for users to visulize all accidents in US since 2016.
Users can self-report accidents with or without usernames.
Admin will handle all reports.
Developer Name | Pitt ID | Description |
---|---|---|
ZIJIAN XU | zix10 | Postgres |
YUE SUN | yus84 | Postgres |
HANCHEN WANG | haw110 | Postgres |
YANBING YANG | yay76 | MongoDB |
YUCHEN DENG | yud43 | MongoDB |
TAO TAO | tat76 | MongoDB |
QIXIAN WU | qiw63 | Neo4j |
SONG FANG | sof10 | Neo4j |
XIAOYANG WANG | xiw137 | Neo4j |
CHUQIAN MA | chm179 | Neo4j |
- Show numbers of accidents per state in the map.
- Show numbers of accidents per county per state in the map
- Searching numbers of accidents by road, city and state and show in google map.
- Analysis and visualize number of accidents by humidity.
- Analysis and visualize number of accidents by visibility.
- Analysis and visualize number of accidents by weather-condition.
- Resiger a new account with username, password, email, city, state, phone number.
- Reset passwords if forget by username, email, phone number, city ,state.
- Login and logout.
- View my account page including username, city, state, email, phone number.
- Update account page.
- Reset password after logging in by enter the old password.
- Update report settings weather by username or anonymous.
- Self report by username, road, county, city, state, time and severity.
- View all history report.
- Withdraw pending report.
- Login and Logout.
- Handle all user reports, approve and deny by comments.
- View all reports.
- Update all reports.
- Delete reports for untrue.
- Delete users.
Operation | API | Description | |
---|---|---|---|
GET | api/accidents/numbersByState | Select numbers of accidents per state | |
GET | api/accidents/numbersByCounty/:state | Select numbers of accidents per county by state | |
GET | api/accidents/accidentsByRoad/:state/:city/:road | Searching by road, city and state | |
GET | api/accidents/numbersByHumidity | Select numbers of accidents by humidity | |
GET | api/accidents/numbersByVisibility | Select numbers of accidents by visibility | |
GET | api/accidents/numbersByWeatherCondition | Select numbers of accidents by weather condition | |
POST | api/user/signup | User registration | |
GET | api/user/infoCheck | Check info is matched or not | |
PUT | api/user/updatePassword/:username | Reset password for user | |
POST | api/user/login | Check info is matched or not | |
GET | api/user/:username | Get all user info | |
PUT | api/user/updateAllInfo/:username | update new info for user | |
PUT | api/user/updateSettings/:username | Update report settings | |
POST | api/user/self-report/:username | Self-report accidents | |
GET | api/user/reports/:username | View all history reports | |
DELETE | api/user/:username/:reportID | Delete pending report | |
POST | api/admin/login | Check info is matched for admin | |
PUT | api/admin/:reportID | Update report details | |
DELETE | api/admin/:reportID | Delete user | |
DELETE | api/admin/:username | Delete user | |
GET | api/admin/allUser | Get all users | |
GET | api/admin/allAccidents | Get top 100 recent accidents |
- All developers should create a new branch, naming rules for both local and remote is develop-<FirstName>
- All pushes should be pushed to your own remote branch. Don't push to master.
- Merge is allowed only by permision.
- Do not add ideals in git.
- Make sure all codes are working before push.
- clone from github
cd <target-location>
git clone <github-url>
- check current branch
git branch
- create your own branch
git branch develop-<FirstName>
- change your new branch
git checkout develop-<FirstName>
- add all changes withour ideals
git add <project name>
- commit to local git
git commit -m "your commit comments"
- return to last revison before push
git reset --soft HEAD~1
- first time push to github
git push -u origin develop-<FirstName>
- after first time push
git push
- check current remote url
git remote -v
- check all branches
git branch -a
- stash changes
git stash
- Datasource should be added in propertity and localhost should be replaced as ENV.PATH
- All Models, Service, Controller, DOM should be naming as PostgresModels, MonogoModels, Neo4jModels...
- server port should be 8080
- Installing angular
npm i -g angular
- Run angular
ng serve
- Install sourcetree so that all git logs can be visualized.
- It is better that all usernames and passwords for DB are same eg. username: adbproject, password: password
- It is better to use IntelliJ, WebStorm IDEs
- Test all APIs in postman