Nuxt 3 Self hosted REST API module with countries data
npm install nuxt-countries-apiGet access to the endpoints here: https://countries.xamu.com.co/
Data provided by: https://github.com/dr5hn/countries-states-cities-database
 
``shell`
npm i nuxt-countries-apior with yarn
yarn add nuxt-countries-api
Add to modules in nuxt.config.ts:
`js
// nuxt.config.ts, basic setup
export default defineNuxtConfig({
modules: ["nuxt-countries-api"],
});
`
`js
// nuxt.config.ts, example configuration
export default defineNuxtConfig({
modules: ["nuxt-countries-api"],
countries: {
base: "/_countries",
},
});
`
| Name | Type | Default | Description |
| ---- | ------ | -------------- | ----------------------------------- |
| base | string | "/\_countries" | Base path to be used on nuxt server |
`bash``
$ yarn dev
preserveSymlinks could break the module