GitXplorerGitXplorer
g

stereotype-map

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
845c81a15fa8d94c14eaa72c5f79e92c6d7d3a4d

Fix CORS issue

ggetkey committed 8 years ago
Unverified
1aca5d2a51a2ab6ddfac9b4c5a90d7d7926bc5f5

Add React/Redux version

ggetkey committed 8 years ago
Unverified
c491f0c1ca8a3e1c03a312d9de62cc29c3c218c2

Use Vuex to separate Model and View and everything in between

ggetkey committed 8 years ago
Unverified
6639c63ba20429283aa6999c402923a70e40d632

Prepare database queries

ggetkey committed 8 years ago
Unverified
629985fe83b5d51b5d4b3a8875b8dfc931a5fde8

Verify if a stereotype is present already directly in SQL

ggetkey committed 8 years ago
Unverified
dc5beeae225a73f766a079fd7f43629340cb4d7b

Better explanation

ggetkey committed 8 years ago

README

The README file for this repository.

A map of national stereotypes.

The data is taken from Google's search suggestions, for queries such as "why are the french so".

search suggestion example

The results are certainly not politically correct, and that's what makes it interesting and funny!

Install

$ npm install --no-optional
$ node hook.js 8080 # start the server!

API

You are free to use the API, but please do not abuse it.

GET stereotypemap.info/api/{country ISO 3166-1 alpha-2 code}.json

Example:

GET stereotypemap.info/api/DE.json

You will get a JSON-formatted array of stereotypes associated with the country you chose.

Database

If you install the (optional) npm package pg-promise, data will be saved to a PostgreSQL database.

You must first create the tables (in the postgreSQL shell):

=> \i db/create.pgsql

You will need the file db.json, which contains your database credentials:

{
	"host": "localhost",
	"port": 5432,
	"database": "stereotypemap",
	"user": "getkey",
	"password": "yourpassword"
}

Credits

The map svg file is from amCharts, distributed under the CC BY-NC 4.0.