https://github.com/alexcambose/rapoarte-drumuri
Rapoarte Drumuri helps drivers avoid unplesant events on the road :construction: :blue_car:
https://github.com/alexcambose/rapoarte-drumuri
driver express googleplay jwt jwt-authentication mongodb mongoose nodejs react react-native road traffic useful
Last synced: 9 months ago
JSON representation
Rapoarte Drumuri helps drivers avoid unplesant events on the road :construction: :blue_car:
- Host: GitHub
- URL: https://github.com/alexcambose/rapoarte-drumuri
- Owner: alexcambose
- Created: 2017-09-09T19:12:59.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-16T19:58:52.000Z (about 8 years ago)
- Last Synced: 2025-01-16T06:25:12.343Z (11 months ago)
- Topics: driver, express, googleplay, jwt, jwt-authentication, mongodb, mongoose, nodejs, react, react-native, road, traffic, useful
- Language: JavaScript
- Homepage: https://play.google.com/store/apps/details?id=com.rapoarte_drumuri
- Size: 1.6 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rapoarte-Drumuri
**Rapoarte Drumuri** (Roads Reports) is meant to help drivers who are tired of unexpected events on Romanian roads. With this app anyone can report a closed, broken, in repair or dangerous road so that other drivers are aware of the problem.
### Links
[Google Play](https://play.google.com/store/apps/details?id=com.rapoarte_drumuri)
### Docs
This app is made out of two parts
1. The front-end side
2. The back-end side
# Frontend
### Installation
Before you continue to read, the front-end side of this application is based on [react-native](https://facebook.github.io/react-native/) so make sure you read and follow their documentaion on how to set up and install react-native.
```
cd frontend/App && npm install
```
You need to have the app installed on your device or emulator
```
react-native run-android
```
Start the development server
```
npm start
```
### Connecting to the server
In order for the app to be useful and display the reports it needs to know where the backend server is.
`app/constants.js` contains the `domain`, `googleAPIkey` and `googleMapsGeocodingAPIkey` that needs to be replaced.
# Backend
The back-end side is an API based on nodejs [express](https://expressjs.com/) server, [jwt](https://jwt.io/) for user authentication and [mongoose](http://mongoosejs.com/) for mongo database.
### Installation
```
cd backend && npm install
```
to start the server
```
node ./app/server.js
```