This is a final project for INFSCI2711
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 | haw11 | 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/numbersByRoad/: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/register | User registration |
[] | GET | api/user/:username/:city/:state/:email/:phonenumber | Check info is matched or not |
[] | POST | api/user/:username/resetPassword | Reset password for user |
[] | GET | api/user/:username/:password | Check info is matched or not |
[] | GET | api/user/:username | Get all user info |
[] | UPDATE | api/user/:username/updateAccount | update new info for user |
[] | UPDATE | api/user/:username/settings | Update report settings |
[] | POST | api/user/:username/self-report | Self-report accidents |
[] | GET | api/user/:username/reports | View all history reports |
[] | DELETE | api/user/:username/:reportID | Delete pending report |
[] | GET | api/admin/:username/:password | Check info is matched for admin |
[] | POST | api/admin/:username/reports | Handle report by comments |
[] | UPDATE | api/admin/:username/updateReport/:reportID | Update report details |
[] | DELETE | api/admin/:reportID | Delete user |
[] | DELETE | api/admin/deleteUser/:username | Delete user |
- 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