Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dheavy/nuxt-wp
A test Nuxt.js project fetching data from the Wordpress API.
https://github.com/dheavy/nuxt-wp
nuxt nuxtjs single-page-app single-page-applications spa vue vue2 vuejs vuejs2 vuex webdev webdevelopment wordpress wordpress-development wp
Last synced: 6 days ago
JSON representation
A test Nuxt.js project fetching data from the Wordpress API.
- Host: GitHub
- URL: https://github.com/dheavy/nuxt-wp
- Owner: dheavy
- Created: 2018-12-03T23:53:10.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-03T23:53:53.000Z (about 6 years ago)
- Last Synced: 2024-12-15T15:19:54.021Z (2 months ago)
- Topics: nuxt, nuxtjs, single-page-app, single-page-applications, spa, vue, vue2, vuejs, vuejs2, vuex, webdev, webdevelopment, wordpress, wordpress-development, wp
- Language: CSS
- Size: 129 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nuxt-wp
> A Nuxt.js project fetching data from the Wordpress API.
## Synopsis
This is a simple project to test the usage of the WP API within a Nuxt application.
It will use `process.env.API_BASE` (defaulting to `http://localhost`) to craft an endpoint to the WP API,
and display a list of `posts`, each pointing to a dynamic single `post` with dedicated pages.## Build Setup
``` bash
# install dependencies
$ npm install # Or yarn install# serve with hot reload at localhost:3000
$ npm run dev# build for production and launch server
$ npm run build
$ npm start# generate static project
$ npm run generate
```For detailed explanation on how things work, checkout the [Nuxt.js docs](https://github.com/nuxt/nuxt.js).