well, no, not really
Have you ever wondered how safe is your country ? You can check it out now without going on yahoo answers or finding answers on the third google page
- Sparkjava framework http://sparkjava.com/
- rethinkdb as database
- Angular (v4)
- ng2-completer https://github.com/oferh/ng2-completer
- ng2-charts https://github.com/valor-software/ng2-charts
-
Dependencies
-
Clone the repo
git clone https://github.com/meltingice1337/ggwp
- Go to the backend directory
cd backend/amisafe
- Run
mvn exec:java -Dexec.mainClass="Server"
-
Dependencies
-
Clone the repo
git clone https://github.com/meltingice1337/ggwp
- Go to the frontend directory
cd frontend
- Change the
IP
andPORT
to match your server
countryinfo.service.ts
getCountryInfo(country) {
return this.http.get('http://IP:PORT/api/v1/aspects/' + country.toLowerCase())
.map((res) => res.json());
}
requestGraphData(type) {
return this.http.get('http://IP:PORT/api/v1/aspect/' + type)
.map((res) => res.json());
}
search.service.ts
getCountry() {
return this.http.get('http://IP:PORT/api/v1/countries').map(
(res) => res.json()
);
}
- Install the dependencies and run
npm i
npm start
- You can build the project so you can deploy using (a
dist
folder will be created and you can directly upload it to any server)
npm run build