Giter VIP home page Giter VIP logo

nuxt-starter-kit-v2's Introduction

Nuxt Starter Kit v2

I've learned a lot about Nuxt and best practices. Instead of trying to restructure v1 of my starter kit I decided to start fresh. Based off of the Nuxt Express template.

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 start

For detailed explanation on how Nuxt works, checkout the Nuxt.js docs.

Backpack

Nuxt uses backpack to watch and build the application, so you can use the latest ES6 features (module syntax, async/await, etc.).

Storybook

Storybook is a development environment for UI components. It allows you to browse a component library, view the different states of each component, and interactively develop and test components.

# build and run Storybook
$ npm run storybook

Stories are written in the components folder. This is not a hard and fast rule. You can change where stories are located by changing the config in .storybook/config.js. Out of the box it's set to look for any files inside of the components directory that has a .story.js extension.

Authentication and Authorization

Using Express and Axios this project allows you to auth users and protect pages. server/api/auth.js shows the endpoints used to log a user in. You can find documentation on what the endpoints expect and return on Postman. It uses store/index.js to manage the state of a user and send login/logout actions. Also check pages/index.vue to see what methods to use to log in and pages/admin/index.vue to see how to protect a page so only authenticated users can see it.

nuxt-starter-kit-v2's People

Contributors

itsmattshull avatar

Watchers

athiwatp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.