-
Create server using KOA.js
-
Add middleware for AJAX requests. Check token from request parameters and if it is not equal to 'abcde' return unauthorized code.
-
Serve single-page application with angular.js, angular-ui.js + SemanticUI (bower repo: Semantic-UI-CSS,include both Semantic-UI-CSS/semantic.min.js and Semantic-UI-CSS/semantic.css)
-
Add menu with 2 options (HOME, APP).
-
Create directive for ui dropdown (from Semantic UI http://semantic-ui.com/modules/dropdown.html#/examples)
-
Add collection to mongodb for dropdown options and API for it to GET values (example doc
{title: 'Dropdown 1', options: [{id: 'option1', label: 'Option 1'}]}...) -
Resolve dropdowns from server API in APP state definition. Render dropdowns with title and options in APP view using directive. Add default option 'Not Selected'. Show selected values in layout
-
Use ES6-7 features both on server and client. Add gulpfile to build ES6 with Babel
-
Pack application in Docker (include
npm install,bower installand `
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html ng-app="main"><head><style type="text/css">@charset "UTF-8";[ng\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\:form{display:block;}</style> | |
| <title ng-bind="pageTitle ? pageTitle : 'goLance'">Dashboard</title> | |
| <meta charset="utf-8"> | |
| <meta property="og:title" content="goLance"> | |
| <meta property="og:site_name" content="goLance"> | |
| <meta property="og:image" content="https://res.cloudinary.com/golance/image/upload/v1455012811/logo-square_slnrua.png"> | |
| <meta property="og:description" content="goLance is an online platform where you will find the most skilled Freelancers from around the World . Dozens of Quality Programers, Designers, Developers, writers, etc.. are here to resolve all your Business needs."> | |
| <meta property="description" content="goLance is an online platform where you will find the most skilled Freelancers from around the World . Dozens of Quality Programers, Designers, Developers, writers, etc.. are her |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import _ from 'lodash'; | |
| import { View, Text } from 'react-native'; | |
| import StarRating from 'react-native-star-rating'; | |
| import { colors } from 'ios/styles/variables'; | |
| import styles from './Rating.styles'; | |
| const Rating = ({ feedbackScore, size }) => { | |
| const rating = _.isNumber(feedbackScore) ? feedbackScore : feedbackScore.total || 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function toJson(obj, pretty) { | |
| if (typeof obj === 'undefined') return undefined; | |
| if (!isNumber(pretty)) { | |
| pretty = pretty ? 2 : null; | |
| } | |
| return JSON.stringify(obj, toJsonReplacer, pretty); | |
| } | |
| function toJsonReplacer(key, value) { | |
| var val = value; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <header> | |
| <button (click)=“sidebar.show()”></button> | |
| <sidebar #sidebar></sidebar> | |
| </header> | |
| @Component({ | |
| selector: 'sidebar', | |
| }) | |
| class ChildComponent{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Wrong format */ | |
| .container { | |
| margin: 10px; | |
| border: 1px solid; | |
| .content { | |
| font-weight: bold; | |
| } | |
| .footer { | |
| background: black; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Приглашаем front-end разработчиков присоединиться к команде Paralect в Минске. Мы проектируем и разрабатываем стартап-продукты для наших клиентов и решаем множество технических и не только технических задач. Мы ищем серьезных, но в то же время веселых, чтобы вместе продолжать становиться профессионалами своего дела. | |
| Paralect — это маленькая и дружелюбная компания, основанная 5 лет назад. У нас просторный офис, площадью 700 кв.м., рядом с пл. Якуба Коласа. | |
| **Проверьте себя:** | |
| Ниже мы приводим наиболее важные навыки и знания, которыми, мы надеемся, вы обладаете. | |
| > **HTML+CSS** | |
| > *Отличные знания* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Приглашаем front-end разработчиков присоединиться к команде Paralect в Минске. Мы проектируем и разрабатываем стартап-продукты для наших клиентов и решаем множество технических и не только технических задач. Мы ищем серьезных, но в то же время веселых, чтобы вместе продолжать становиться профессионалами своего дела. | |
| Paralect — это маленькая и дружелюбная компания, основанная 5 лет назад. У нас просторный офис, площадью 700 кв.м., рядом с пл. Якуба Коласа. | |
| **Проверьте себя:** | |
| Ниже мы приводим наиболее важные навыки и знания, которыми, мы надеемся, вы обладаете. | |
| > **HTML+CSS** | |
| > *Отличные знания* |
- Reduce interactions via eventdispatcher
- emit commands directly to target service (tracker, payments). ex. payments needed 3 services to proceed(app_processor, app_event_dispatcher and app_payment_processor), now only 1 - payment processor.
- do not duplicate sql entities (payments) in write db
- now processors are able to read and write from write db and we do not emit too many events and do not rely on event dispatcher (eventually we may not need it at all and reduce risks on it dependency)
- created separate app_scheduler service for background tasks, emit commands directly to services
-
Separate read handler and view handler - all background counters and handlers are in read handler now instead of view handler
-
Use elasticsearch db instead of mongodb for main search pages (browse jobs and golancers) to increase search perfomance and reduce mongodb load
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| redis: | |
| image: redis:latest | |
| ports: | |
| - "6380:6379" | |
| zookeeper: | |
| image: wurstmeister/zookeeper | |
| ports: | |
| - "2181:2181" |