A Medusa plugin to lookup a user's country based on IP using MaxMind
npm install medusa-plugin-ip-lookup-maxmind#### Steven
- GitHub - @stnguyen90
- Twitter - @stnguyen90
- Discord - BalistarDrake#3823
Lookup a user's region using MaxMind.
This plugin is made to work with MedusaJS. You can find the documentation here. Here's what you'll need to get started with this plugin:
1. Install the plugin:
``bash
npm install medusa-plugin-ip-lookup-maxmind
yarn add medusa-plugin-ip-lookup-maxmind
`
2. Obtain a IP geolocation database file from MaxMind. You can download a GeoLite2 Free Geolocation Data here.
3. Add the plugin to your medusa-config.js file (inside the plugins array):
`jsmedusa-plugin-ip-lookup-maxmind
{
resolve: ,``
options: {
maxmind_db_path: "
},
}