• Stars
    star
    121
  • Rank 292,987 (Top 6 %)
  • Language Vue
  • Created over 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Nuxt.js API Example using Vuex and axios

Nuxt API Example

An example of using Vuex, axios, and a REST API with Nuxt

A couple things that are setup for this example that could be of interest to someone...

  • Nuxt's fetch() method is used to fill our Vuex Store for our posts listing page and for the dynamic post page for individual post
  • The head property for the dynamic post route is using the title property from the returned post object to set the meta title property

Other project info

  • Nuxt Modules are used to add Bulma, markdown-it, and font-awesome
  • The menu.js file inside the middleware directory is used to handle closing the mobile dropdown menu once a link is selected
  • I am using Netlify for hosting this as a static site

Build Setup

# 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.

More Repositories

1

vue2-editor

A text editor using Vue.js and Quill
JavaScript
2,455
star
2

nuxt-ssr-firebase

Nuxt.js Universal App with SSR via Firebase Functions and Firebase Hosting
Vue
282
star
3

nuxt-firebase-auth

This is an example of using Nuxt.js in SPA mode with Firebase Authentication
Vue
191
star
4

nuxt-ssr-firebase-auth.v2

JavaScript
131
star
5

nuxt-ssr-firebase-auth

Nuxt.js using SSR and Firebase with Authentication
JavaScript
72
star
6

nuxt2-ssr-firebase

Nuxt2 Universal App with SSR via Firebase Functions and Firebase Hosting
JavaScript
50
star
7

nuxt-markdown-example

An example of using markdown files for content with Nuxt.js / Vue.js
Vue
48
star
8

pocketvue

An Electron based app using Vue.js for Pocket
JavaScript
21
star
9

vue2editor-images

Example of using new image upload to server feature for Vue2Editor
JavaScript
19
star
10

nuxtify

Vue
17
star
11

nuxtcms

CSS
6
star
12

auth-module-firebase

JavaScript
5
star
13

nuxtfire

JavaScript
4
star
14

nuxtjs-firebase-functions

Vue
3
star
15

nuxt-netlify-fauna

JavaScript
3
star
16

nuxtcms-with-netlifycms

Vue
3
star
17

nuxtcms-demo

Vue
2
star
18

nuxt-admin-module

JavaScript
2
star
19

nuxtent-example

JavaScript
2
star
20

dkroyer

My Personal Site
Vue
2
star
21

nuxt-apollo-blog

Vue
2
star
22

nuxt-tailwind

JavaScript
2
star
23

nuxt3-app

Testing Nuxt 3 Beta
Vue
2
star
24

nuxty

Nuxt.js Template with Buefy (Bulma & Vue Library)
JavaScript
2
star
25

vuex-fireadmin

JavaScript
1
star
26

nuxtfire-starter

Vue
1
star
27

udacity-mars-project

JavaScript
1
star
28

nuxtfire-news

Vue
1
star
29

nuxt-starter

JavaScript
1
star
30

nuxt-boilerplate

JavaScript
1
star
31

codelouisville-week5demo

CSS
1
star
32

got2dance

Vue
1
star
33

nuxt-netlifycms-boilerplate

Vue
1
star
34

nuxt-book

JavaScript
1
star
35

nuxtlify

Vue
1
star
36

udacity-dino-project

JavaScript
1
star