Giter VIP home page Giter VIP logo

blubber's Introduction

Blubber

Blubber is a framework designed to act as a JSON client and provide tools to build a CRUD application using GDS styles.

Blubber stands for.. nothing, it was picked because the npm package name was available.

The main components of Blubber are:

  • Promise based JSON API Client
  • Entity collection lists with sorting and filtering
  • Entity displays display
  • Form definition and generation
  • Form post handling
  • Transformation between API interface and form data
  • Nunjucks macros for rendering GDS style list/form layout
  • Sass library to enhance GDS styles

Linting/Formatting

This project uses a combination of Airbnb ESLint rules and Prettier to keep source code formatting consistent. The configuration for eslint tells it to ignore Airbnb's rules for code formatting but apply it's language rules, while leaving formatting up to Prettier.

A git hook has been setup to run prettier and eslint for each file Javascript commited.

Editor Integration

To avoid surprises and know what your code will look like when it is commited it's a good idea to install the Prettier plugin for your IDE of choice, alongside the plugin for eslint.

Visual studio code

For Visual Studio Code, install the Prettier plugin and the ESLint plugin. You can then manually tell the editor to reformat your source or set "editor.formatOnSave": true in your workspace settings.

Testing - Jest

Tests are written in Jest and can be ran using npm test or npm test:watch

NPM Tasks

  • develop: Runs the gallery web app in watch mode and rebuilds and restarts when any soure changes are made
  • lint: Parses all source javascript and styles to make sure they conform to the rules laid down by Airbnb
  • precommit: Called from the Git pre-commit hook which in turn calls eslint and prettier to check those files and format them following the common formatting rules
  • start: Starts the server in normal mode
  • test: Executes jest to run the Javascript unit tests
  • test:watch: Runs jest in watch mode, this only tests changed files by default

blubber's People

Contributors

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