https://github.com/lukeocodes/netlify-plugins-by-lukeocodes
Demo site for my Netlify Plugins. Check out how I have them configured in the README
https://github.com/lukeocodes/netlify-plugins-by-lukeocodes
netlify netlify-plugin nuxtjs
Last synced: 11 months ago
JSON representation
Demo site for my Netlify Plugins. Check out how I have them configured in the README
- Host: GitHub
- URL: https://github.com/lukeocodes/netlify-plugins-by-lukeocodes
- Owner: lukeocodes
- Created: 2020-05-25T09:54:27.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-02-29T01:50:50.000Z (over 2 years ago)
- Last Synced: 2025-01-13T05:42:03.796Z (over 1 year ago)
- Topics: netlify, netlify-plugin, nuxtjs
- Language: Vue
- Homepage: https://netlify-plugins-by-lukeocodes.netlify.app/
- Size: 895 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README




# Netlify Plugins by ME
This is the source for the Nuxt.js based [demo site deployed to Netlify](https://netlify-plugins-by-lukeocodes.netlify.app/), that includes the use of plugins I've created for the [Netlify Plugin Directory](http://app.netlify.com/plugins)
## Netlify Plugin: Algolia Export
The [Algolia Export plugin](https://github.com/lukeocodes/netlify-plugin-algolia-export) exports the parsed built pages to Algolia directly. Requires environment variables to be set to work, without which it will fail the plugin but not the build, with a message reminding you to set them.
```
[[plugins]]
package = "netlify-plugin-algolia-export"
[plugins.inputs]
exclude = ['/private', '/200', '/search']
```
## Netlify Plugin: OpenSearch
The [OpenSearch plugin](https://github.com/lukeocodes/netlify-plugin-opensearch) builds a simple search.xml file based on config. Why not just create a `search.xml` file? It is just another arbitrary file to store statically.
```
[[plugins]]
package = "netlify-plugin-opensearch"
[plugins.inputs]
siteShortName = "Demo Site"
siteDescription = "Find stuff on the demo site"
siteTags = "demos"
siteContact = "luke@lukeoliff.com"
```
## Running This Demo Locally
Install and run :)
```
npm install
```
```
npm run dev
```
## Using This As a Nuxt.js Starter
Using this as an Algolia enabled Nuxt.js Starter repo, see above for running locally.
To build as a universal server-side rendered Vue application:
```
npm run generate
```
Dist folder is the standard Nuxt.js `dist` directory.
### Using Algolia Export
The Algolia Export plugin requires the following environment variables.
| env variable name | type | required | default | description |
|---|---|---|---|---|
| ALGOLIA_APPLICATION_ID | String | true | `null` | Your Algolia application ID |
| ALGOLIA_ADMIN_KEY | String | true | `null` | Your Algolia Admin (or any index-write enabled) API key |
| ALGOLIA_INDEX | String | true | `null` | Your Algolia index name |
### Using Algolia InstantSearch
The `/search` page uses [Algolia InstantSearch](https://www.algolia.com/doc/api-reference/widgets/instantsearch/vue/). You'll need to add an extra environment variable to get this working.
| env variable name | type | required | default | description |
|---|---|---|---|---|
| ALGOLIA_SEARCH_KEY | String | true | `null` | Your Algolia Search (or any index-read enabled) API key |
## Contributing
Make pull-requests, but follow [code of conduct](.github/CODE_OF_CONDUCT.md) please.