GithubHelp home page GithubHelp logo

handbook's Introduction

Handbook ๐Ÿ“š

Prerequisite

If you are reading this, you are probably familiar with some Object Oriented Programming. In order to participate in a team and have a sufficient development process, team-members should have a shared philosophy of how they develop software.

For this handbook you will need to know the SOLID principles:

  • Single-Responsibility
  • Open/Close
  • Liskov Substitution Principle
  • Interface Segregation Principle
  • Dependency Inversion Principle

Find your own source and notes, which can explain these principles in whatever way suiting you.

Furthermore, we strongly advise you to read the Clean Code book. This philosophy is industry standard and has been for many years, so acquiring this knowledge is a great investment.

Definitions

  • task a single capability in a software. Fx: make a link to the Home page on the about page.
  • feature a feature for the in a software, formed by a set of tasks. Fx: adding multiple profile images
  • epic a use case of the software. Fx: making a signup flow

Sprints

Design

Projects, developed by the team, should use the Atomic design.

Components

  • All Components must be in a file that starts with a capital letter. (Fx: BlueButton.tsx)
  • atoms should be files that are purely styled components
  • molecules are components that are small, but contain more than just styled components
  • organisms are more complex components that contain multiple molecules/atoms

Pages

  • All pages should have a folder inside content that encapsulates page specific code.

Project structure

โ”œโ”€โ”€ backend                 # Server/service related application
... 
โ”œโ”€โ”€ client                  # Frontend related application
โ”‚   โ”œโ”€โ”€ components          # Atomic design
โ”‚   โ”œโ”€โ”€ globals             # Fx: colors.tsx, categories.json etc.
โ”‚   โ”œโ”€โ”€ index               # A single entry file
โ”‚   โ”œโ”€โ”€ models/types        # Model/types/codegen-files/data classes etc.
โ”‚   โ”œโ”€โ”€ pages               # Navigable singe views which implements components (top levels) 
โ”‚   โ”œโ”€โ”€ styles              # Getting started guide
โ”‚   โ””โ”€โ”€ ...                 # package declaration and config/env files.
โ””โ”€โ”€ readme.md

Code Style

Per default do not use eslint or equivalent. Hover some projects will use eslint locally or on 'Git-Commit-Time'.

  • Do not outcomment code. Use the vcs! If you commit regularly, you can always go back and find old code.
  • Try to make the code compact. Do not have lines with one character. Fx:
//Illegal 
<a 
   href="https://www.facebook.com/fundbrickscompany/"
   rel="nofollow noopener"
> 
   <FBIcon 
       name={"facebook"}
   />
</a> 

//Legal 
<a href="https://www.facebook.com/fundbrickscompany/" rel="nofollow noopener"><FBIcon name={"facebook"} /></a>

Git

By default you should as minimum have a production and a development environment and for most projects you will also need a staging environment. Although, in early stages of a project a production environment might seem overkill. However the team should make the system environment compatible from the beginning.

You MUST ALWAYS commit your code after finishing a task. Before you commit it is important that you test the functionality of the part of the system you've worked with. (TASKS)

You should create a branch for each feature. After you merge the branch into the development branch it is important that you test the functionality on the development branch. (FEATURES)

When merging the development branch into the staging/production environment, you should always test the whole system. (EPICS)

Security ๐Ÿ›ก

Never ever include any .env files, api keys or equivalent.

Technical setup

Engine: v12.16.*

React-version =<16.8

AWS CLI 2

npm 6.14.*

amplify cli ~4.27.2

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.