Excercise to start practising with node.js
Given an IP address return the CountryCode
Installation:
git clone https://github.com/manuelmorales/location.git
cd location
npm install
grunt bootstrap # Will download the database
Check that everything is in order:
grunt test
Run the server:
node app.js
Released under the MIT License. See the LICENSE file for further details.
- Free IP database: http://lite.ip2location.com/database-ip-country
- Express.js dabatase integration: http://expressjs.com/guide/database-integration.html