medusa-plugin-ip-lookup-maxmind
About
Participants
Steven
- GitHub - @stnguyen90
- Twitter - @stnguyen90
- Discord - BalistarDrake#3823
Description
Lookup a user's region using MaxMind.
Preview
Set up this plugin
Requirements
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:
Install Project
- Install the plugin:
12345npm install medusa-plugin-ip-lookup-maxmind# oryarn add medusa-plugin-ip-lookup-maxmind
- Obtain a IP geolocation database file from MaxMind. You can download a GeoLite2 Free Geolocation Data here.
- Add the plugin to your Copy to clipboard
medusa-config.js
file (inside the Copy to clipboardplugins
array):
123456{resolve: `medusa-plugin-ip-lookup-maxmind`,options: {maxmind_db_path: "<PATH_TO_MAXMIND_DB_FILE>",},}