Giter VIP home page Giter VIP logo

car-rental's Introduction

Car rental platform

Prerequisites

  • Git client of your choice
  • NodeJS (Installation through brew(macos)/chocolatey(windows) recommended)

Install

  • Clone project from https://github.com/
  • Run npm i to install NPM dependencies
  • Test project with npm run test

Run project

  • npm run build prebuild all assets
  • npm run dev startup dev server to view project

NPM Commands

  • storybook: Run storybook to work on individual components
  • build: Build webpack production variant of the application
  • dev: Start local webpack dev environment
  • test: Execute jest snapshot testing and other tests
  • test:watch: Execute tests and watch for changes
  • test:debug <path to test>: Debug test in chrome debugger chrome://inspect click Open dedicated DevTools for Node
  • lint: Lints all typscript

Versioning

Npm versioning will update the packjson and package-lock file. This will help with versioning of the state saved in the local storage. A new version will trigger a reset of a clean state given there might have been state changes on which the application could fail.

npm version patch 0.0.x npm version minor 0.x.0 npm version major x.0.0

Commit messages

Symantic commit messages enables us to generate changelogs and gives developer ease while viewing the git history.

e.g. test(helper): ensure fetch response object is valid

The format includes type and a subject:

<type>(<optional scope>): <subject>

<body>

Type

Must be one of the following:

  • feat: New feature
  • fix: Bug fix
  • docs: Changes to the documentation
  • style: Formatting, missing semi colons, etc; no production code change
  • refactor: Refactoring production code, eg. renaming a variable
  • test: Adding missing tests, refactoring tests; no production code change
  • chore: Changes to the build process or auxiliary tools and libraries

Hygen Timesavers

We’ve added hygen, the scalable code generator that saves you time, to the stack so that you can quickly generate a new component using our component standard, which is reflected in the component structure outputted by the command.

Below is an example of issuing the command to create an atom component called my-component.

npx hygen modules component --name my-component --type atom

options - type

  • atom
  • molecule
  • organism

car-rental's People

Contributors

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