Skip to content

meltingice1337/amisafe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Am i safe ?

Putin & Co.

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

Backend technologies

Frontend technologies

Start backend

git clone https://github.com/meltingice1337/ggwp
  • Go to the backend directory
cd backend/amisafe
  • Run
mvn exec:java -Dexec.mainClass="Server"

Start frontend

git clone https://github.com/meltingice1337/ggwp
  • Go to the frontend directory
cd frontend
  • Change the IP and PORT 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