Giter Club home page Giter Club logo

bt's Introduction

Miit — Modern Dating.

Miit Banner

A dating app assignment for @cmda-bt Blok Tech

Installing

$ git clone https://github.com/didiercatz/bt.git
$ npm install # or yarn

Running the server

$ npm run start # or yarn start

Running the server + front-end

$ npm run dev # or yarn dev

Components

This projects uses componentization in the form of Atomic Design. Components are separated in three categories: atoms, molecules and organisms. For reference, see Brad Frost's excellent article on Atomic Design

In short:

  • Atoms are small single elements or units — buttons, input fields, etc.
  • Molecules are related elements like an input field and a button together.
  • Organisms are made up of molecules and atoms, like a form containing multiple input fields and buttons.

In this project, components are stores in views/partials/components

views/
├── partials/
│ ├── components/
│ │ ├── atoms/
│ │ │ ├── _nav.scss
│ │ │ ├── nav.hbs
│ │ ├── molecules/
│ │ ├── organisms/

When running the front-end with npm run dev, a script called get-components.js is ran aswell. This automatically adds all component .scss (for example: _nav.scss) files to a single _components.scss file which is imported into the main bundle. See scripts/get-components.js and src/styles/base/_components.scss.

Conventions

This projects uses eslint and stylelint. Be sure to install those in your editor, or run their respective scripts.

Boolean variables are to be prepended with either is or has, e.g.:

const isLoggedIn = true
const hasUserLoggedIn = true

Hooks, Linting and Formatting

ESLint

ESLint is a JavaScript (EcmaScript) linter that shows you errors as you write your code.

Prettier

Prettier is a formatter for HTML, CSS and JS that automatically makes your code -- well -- prettier. It formats based on your settings for indentation, bracket location, semicolons, etc. It's configured to listen to ESLint's config as well.

Husky (Pre-commit)

This project uses husky on commit, which runs ESLint and Prettier before you're able to push, so all pushed code is nice and neat and (hopefully) error-free.

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.