Code Monkey home page Code Monkey logo

catalog-demo's Introduction

Catalog Demo

Sass logo

A simple demo project

Requirements

  • node-js >= 6.4.0

Installation

To automate the installation process, we recommend that you use the wasa-cli, a CLI tool that can initialize ready-to-go new projects based on this boilerplate in no time.

Otherwise, follow these instructions:

  • npm install to install the dependencies.
  • npm install -g commitizen to globally install Commitizen.

Usage

NPM Scripts

The boilerplate is powered by Gulp, as we are also using services like Babel, Node-Sass, Pug (etc.). You can run each script individually. All main scripts all listed below, but you can also find them in the "scripts" section of the ./package.json file and gulpfile.babel.js configuration.

  • start: clean the build, build, watch and start server
  • build: build the assets and the views
TL;DR: To start the server while watching the assets, run:
npm run start

Documentation

Scripts

Configuration

We are not using nodejs requires as it is not compatible with modern browsers. As a result, import/requires/exports are not allowed. Every JS code must be written inside of a single file, located in ./app/scripts/index.js

ES Linter

We are using the Airbnb JavaScript Style Guide. You can find the configuration file in ./.eslintrc. The linter is not passing through our code. Instead, we recommend that you use a package within your text editor:

Styles

Configuration

Every import is located in ./app/styles/index. They are separated into five categories:

  • abstracts: configuration and helpers.
  • base: basic files (reboot, grid etc.).
  • components: speaks for itself (e.g. Button).
  • layout: layout-related sections (e.g. Header).
  • pages: page-specific styles (e.g. homepage).

SCSS Linter

We are using the Airbnb CSS / Sass Styleguide. You can find the configuration file in ./.scss-lint.yml. The linter is not passing through our code. Instead, we recommend that you use a package within your text editor:

Views

We are using PugJS to handle HTML content, a simple framework to quickly produce content.

Git naming convention

We are using Commitizen to automate our git messages. Simply add files to your commit and then run the command git cz. A prompt will appear and automate your process. By default, we are using the conventionnal-changelog convention (e.g. 'feat(boilerplate): init boilerplate'). It can be paired with standard-version to automate your changelogs and publishing process.

catalog-demo's People

Contributors

johannpinson avatar

Watchers

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