Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codetheorist/nuxt-chuck
A NuxtJS module for displaying random Chuck Norris jokes in your NuxtJS app. If Chuck Norris is your cup of tea, then this module said the day will be saved because Chuck Norris said so. It's even in the built-in database!
https://github.com/codetheorist/nuxt-chuck
Last synced: about 1 month ago
JSON representation
A NuxtJS module for displaying random Chuck Norris jokes in your NuxtJS app. If Chuck Norris is your cup of tea, then this module said the day will be saved because Chuck Norris said so. It's even in the built-in database!
- Host: GitHub
- URL: https://github.com/codetheorist/nuxt-chuck
- Owner: codetheorist
- Created: 2019-11-17T11:38:35.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-17T13:21:42.000Z (about 5 years ago)
- Last Synced: 2024-11-18T11:20:17.824Z (about 2 months ago)
- Language: JavaScript
- Size: 45.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nuxt Chuck
## Info
This module simply adds a component to NuxtJS for displaying a random Chuck Norris joke. The package has it's own database so no API calls are made, relying on VueX for fetching and rendering the data from a JSON file.
## Installation
Simply run:
```
npm install --save @codetheorist/nuxt-chuck
```This will install the module and save it as a dependency. Once this is done you need to add the module to `nuxt.config.js`. It should look like the following:
```
modules: [
// With options
['@codetheorist/nuxt-chuck',
{
namespace: 'norris'
}
],
// Without options, namespace is 'chuck' by default.
'@codetheorist/nuxt-chuck'
]
```This will give you access to the chuck joke component globally.
```
```