Skip to content

djpogo/nuxt-dynamic-static-page-generator

Repository files navigation

nuxt dynamic static page generator

This is the demo project of this blog post: "Nuxt.js Static Page Generator With Dynamic Pages".

The project will read 20 items of the dog api and create an index page and 20 detail pages too, by consuming the api.

During npm run generate the dog api is read and added as routes. Nuxt will build all dog api content as static pages then.

For a real world app you can call npm run generate everytime your api endpoint changes and your website will renew itself.

setup

$ npm install
$ npm run generate
$ ls -l ./dist

about

Have a look into nuxt.config.js#L64 to see how the dog api is read and added as routes and get built as static pages.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published