Skip to content

frontend-park-mail-ru/2021_2_LadnoDavayteBezRoflov

Repository files navigation

CI Website GitHub repo size

Trello

Trello frontend repository for Ladno Davayte Bez Roflov team, autumn of 2021.

Team

Mentors

Backend repository

Link to backend repository.

API

Link to API.

Deploy

Link to deploy.

Usage

Starting the server from the scratch: npm start or npm start-dev (development configuration)

Build: npm run build or npm run build-dev (development configuration)

Starting server after build: npm run server or npm run server-dev (auto-reloading server)

Running linter: npm run lint

Running linter in fixing mode: npm run lint:fix

Directory structure

2021_2_LadnoDavayteBezRoflov
|--.github/workflows #GitHub Actions CI
|
|--public
|  |--assets #Pictures and icons
|  |--fonts #Font files
|
|--server #Static-server
|  |-server.js
|
|--src #JS sources
|  |--actions #Actions and action types
|  |--components #Components
|  |--constants #Global constants
|  |--modules #Modules
|  |  |--Dispatcher
|  |  |--EventBus 
|  |  |--Helpers
|  |  |--Network
|  |  |--Router
|  |  |--Validator
|  |
|  |--popups
|  |--stores #Stores & main logic
|  |--styles
|  |  |--scss
|  |--views #Project pages
|  |-index_template.html
|  |-index.js
|  |-sw.js

Versions

Versions are updated via two ways:

  1. Major updates: major changes to server, architecture and modules. Example: transferring to Flux architecture;

  2. Minor updates: minor fixes and changes to server and modules. Example: refactoring Network module.

Latest version: 0.2.2: HTTPS.

Code style

The project is written using slightly modified Google ESling config. Code style changes:

  • Semicolons at the end of statements are required;
  • Use of single quotes wherever possible is required;
  • 4-space indentation is required;
  • Mixed tabs and spaces when the spaces are used for alignment are allowed;
  • All imports from a single module must be in a single import statement;
  • Not enforcing line endings like \n or \r\n is required;
  • let or const instead of var is required;
  • Variable redeclaration is disallowed;
  • Throw warning if there are unused variables;
  • Maximum code string length is 105;
  • Irregular whitespaces are allowed.