Skip to content

vis97c/countries-api

Repository files navigation

Countries api

Get access to the endpoints here: https://countries.xamu.com.co/

Data provided by: https://github.com/dr5hn/countries-states-cities-database

Nuxt Module

npm (scoped) CircleCI

npm i nuxt-countries-api
# or with yarn
yarn add nuxt-countries-api

Usage

Add to modules in nuxt.config.ts:

// nuxt.config.ts, basic setup

export default defineNuxtConfig({
	modules: ["nuxt-countries-api"],
});

Settings

// nuxt.config.ts, example configuration

export default defineNuxtConfig({
	modules: ["nuxt-countries-api"],
	countries: {
		base: "/_countries",
	},
});
Name Type Default Description
base string "/api/countries" Base path to be used on nuxt server

Development

$ yarn dev

preserveSymlinks could break the module

License

MIT