Giter Site home page Giter Site logo

le-labo's Introduction

Soap showcase site (stolen look from Le Labo)

I made this when I had a go at making soap for christmas one year. It just shows the 4 soaps I made. View the live site here.

Build & Serve

# install dependencies
yarn install

# serve with hot reload at localhost:3000
yarn dev

# build for production and launch server
yarn build
yarn start

# generate static project
yarn generate

For detailed explanation on how things work, check out Nuxt.js docs

Generators

Create a new component

yarn new component

Create a new view

yarn new view

Create a utility module

yarn new util

Create a store module

yarn new store

Descriptions

nettoyage | exfoliating transparent | transparent

Packages

Environment Variables

  • nuxt runtime config: Built in to nuxt, allows passing runtime configuration in nuxt.config.js file, which is then accessible using $config
  • @nuxtjs/dotenv: Loads variables from a .env file directly into context.env and process.env

CSS Preprocessing

SASS for CSS preprocessing.

Component Boilerplate

Writing components can involve a little less boilerplate using these packages.

  • nuxt-property-decorator: Handy TypeScript decorators for class-style Vue components and Property decorators for Vue and Vuex
  • hygen: Helps generate boilerplate code each time you make a new page / component

Code Formatting

Set up your nuxt project with eslint and prettier. These packages help integrate eslint and prettier together.

Testing

Use vue-test-utils with jest.

  • vue-test-utils: Official unit testing utility library for Vue.js
  • jest: Recommended test runner for vue-test-utils Nuxt will also install ts-jest and vue-jest automatically
  • vue-testing-library: A lighter alternative to vue-test-utils
  • @nuxtjs/storybook: For testing whether components mount, different states of components, and maintaining a catalogue of standalone components separate from the application
  • vuex-mock-store: Lets you mock Vuex store
  • jest-mock-axios: Lets you mock axios
  • cypress: For end-to-end and visual regression testing

Documentation

  • vuepress: Vue-powered static site generator
  • @nuxt/content: Static site generation via /content directory, acting as Git-based Headless CMS

le-labo's People

Contributors

persuc avatar

Watchers

 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.