Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaltrushaitis committed Feb 26, 2020
2 parents 8b33659 + a266e6a commit 46f4c29
Show file tree
Hide file tree
Showing 27 changed files with 545 additions and 1,861 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ This is the very first code release.
:scorpius:

[readme]: README.md
[README.md]: README.md
[README]: README.md
[current]: README.md
[License]: LICENSE.md
18 changes: 10 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
.IGNORE:
.ONESHELL:

SHELL = /bin/sh
# SHELL = /bin/sh

## ------------------------------------------------------------------------ ##
$(shell if [ ! -f ./NODE_ENV ] 2>/dev/null; then cp -prv config/.NODE_ENV ./NODE_ENV; fi);
$(shell if [ ! -f ./.bowerrc ] 2>/dev/null; then cp -prv config/.bowerrc ./; fi);

APP_NAME := cmdb-rtm
APP_SLOG := "CMDB-RTM"
APP_SLOG := "CMDB - RTM"
APP_LOGO := ./assets/BANNER
APP_REPO := $(shell git ls-remote --get-url)

Expand All @@ -31,7 +31,7 @@ include ./bin/Colors
## ------------------------------------------------------------------------ ##

$(file > COMMIT,${GIT_COMMIT})
$(info [${Cyan}${DT}${NC}] Created file [${BYellow}COMMIT${NC}:${BPurple}${GIT_COMMIT}${NC}]);
$(info [${Gray}${DT}${NC}] Created file [${BYellow}COMMIT${NC}:${BPurple}${GIT_COMMIT}${NC}]);

DIR_SRC := ${WD}/src
DIR_BUILD := ${WD}/build-${CODE_VERSION}
Expand All @@ -48,7 +48,7 @@ ifeq ($(.DEFAULT_GOAL),)
.DEFAULT_GOAL := default
endif

$(info [$(Cyan)$(DT)$(NC)] $(BYellow)Default goal is$(NC): [$(BPurple)$(.DEFAULT_GOAL)]$(NC));
$(info [$(Gray)$(DT)$(NC)] $(BYellow)Default goal is$(NC): [$(BPurple)$(.DEFAULT_GOAL)]$(NC));

## ------------------------------------------------------------------------ ##
## INCLUDES ##
Expand All @@ -71,11 +71,11 @@ test: banner state help banner;

## ------------------------------------------------------------------------ ##

.PHONY: setup build deploy dev
.PHONY: setup build deploy

setup:
@ npm i
@ bower i
@ npm i -verbose
@ bower i -V

build:
@ NODE_ENV=${APP_ENV};
Expand All @@ -94,7 +94,7 @@ redeploy: rebuild deploy;

## ------------------------------------------------------------------------ ##

.PHONY: all full cycle
.PHONY: all full cycle dev
#* means the word "all" doesn't represent a file name in this Makefile;
#* means the Makefile has nothing to do with a file called "all" in the same directory.

Expand All @@ -104,4 +104,6 @@ full: clean-all all;

cycle: setup build deploy;

dev: redeploy banner

## ------------------------------------------------------------------------ ##
50 changes: 27 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,58 +1,62 @@
[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg?style=plastic)](https://github.com/conventional-changelog/standard-version)
[![Dependency Status](https://david-dm.org/tbaltrushaitis/cmdb-rtm.svg?theme=shields.io)](https://david-dm.org/tbaltrushaitis/cmdb-rtm)
[![devDependency Status](https://david-dm.org/tbaltrushaitis/cmdb-rtm/dev-status.svg?theme=shields.io)](https://david-dm.org/tbaltrushaitis/cmdb-rtm#info=devDependencies)
[![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/tbaltrushaitis/cmdb-rtm/blob/master/LICENSE.md)

# CMDB-rtm #

Real-time Tasks Progress Visualization

[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg?style=plastic)](https://github.com/conventional-changelog/standard-version)
[![Dependency Status](https://david-dm.org/tbaltrushaitis/cmdb-rtm.svg?theme=shields.io)](https://david-dm.org/tbaltrushaitis/cmdb-rtm)
<!-- [![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/tbaltrushaitis/cmdb-rtm/blob/master/LICENSE.md) -->

![Real Time Jobs Progress View](assets/img/cmdb-rtm-poc-4-windows.gif)

`cmdb` `real-time` `monitoring` `data visualization`
`cmdb` `real-time` `tasks` `queue` `progress` `monitoring` `visualized` `data visualization`

---

## Live Demo ##
Try to open this [link](http://bit.ly/cmdb-rtm) :point_left: in **several tabs** of your current browser or
Try to open this [page](http://bit.ly/cmdb-rtm-live) :point_left: in:

- [ ] better - do it in **different browsers**
- [x] best - use **different devices** to try from
- [ ] :zero::zero: - **several tabs** of your current browser
or
- [x] :zero::five: - do it in **several different browsers**
or
- [x] :five::zero: - use **several different devices** to try from

All data about status will be shown as HTML elements with some (or any) animations run on all devices `simultaneously`
All data about tasks progress status will be shown as HTML elements with various
(if there are any) animations. Live page can be viewed `simultaneously` on any
device and all instances should look same.

---

## Getting started ##

Its simple. Get it done in the way like this piece of shi*, sorry, of course pieces of code below:

Just `clone` and `make`:
Simply clone the repository and then run `make` inside of a cloned directory:

```shell
$ REPO="cmdb-rtm" \
$ REPO="cmdb-rtm" \
&& git clone "https://github.com/tbaltrushaitis/${REPO}" \
&& cd ${REPO} \
&& make ;
```

then `start` as service:
then `start` as a service:

```shell
$ npm start
```

- [x] It might looks like:
- [x] It might looks like:

![Run Application Server](assets/img/npm-start-001.png)

Then navigate your agent to :point_right: `http://localhost:8084/`

- [x] Visualized rtm-data should be **visible** and **animated**:
- [x] Tasks queue data should be **visible** and **animated**:

![Real Time Jobs Progress View](assets/img/cmdb-rtm-progress.gif)

- [x] Check output of server console:
- [x] Check output of server console:

![Run Application Server](assets/img/user-connected-001.png)

Expand All @@ -62,17 +66,17 @@ Then navigate your agent to :point_right: `http://localhost:8084/`

Scope | Role | Name | Version | Description
:-----:|:----:|:-----|:-------:|:------------
Front | Library | [animate.css](http://daneden.github.io/animate.css/) | 3.7.0 | A cross-browser library of CSS animations
Front | Framework | [Bootstrap](http://getbootstrap.com) | 3.3.7 | HTML, CSS, and JS framework
Front | Library | [jQuery](http://jquery.com/) | 3.3.1 | JavaScript Library
Front | Library | [Lodash](https://lodash.com/docs/4.17.11) | 4.17.11 | A modern JavaScript utility library delivering modularity, performance & extras.
Front | Library | [animate.css](http://daneden.github.io/animate.css/) | [3.7.2](https://github.com/daneden/animate.css/tree/3.7.2) | A cross-browser library of CSS animations
Front | Framework | [Bootstrap](http://getbootstrap.com) | [3.4.1](https://getbootstrap.com/docs/3.4/) | HTML, CSS, and JS framework
Front | Library | [jQuery](http://jquery.com/) | [3.4.1](https://github.com/jquery/jquery/tree/3.4.1) | JavaScript Library
Front | Library | [Lodash](https://lodash.com/) | [4.17.15](https://lodash.com/docs/4.17.15) | A modern JavaScript utility library delivering modularity, performance & extras.

---

## Todo List ##
## TODO List ##

- [ ] Implement business logic within a real ES6 Class instances
- [ ] ~~Create repository~~ (Done v0.0.0)
- [ ] Implement business logic within a real ES6 Class instances
- [x] ~~Create repository~~ (Done v0.0.0)

See the [Changelog][Changelog] for the history of project changes and improvements.

Expand Down
17 changes: 8 additions & 9 deletions assets/BANNER
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
┌────────────────────────────────────────────────────────────────────────────┐
│ _____ __ __ _____ ____ _____ _______ __ __ │
│ / ____| | \/ | | __ \ | _ \ | __ \ |__ __| | \/ | │
│ | | | \ / | | | | | | |_) | ______ | |__) | | | | \ / | │
│ | | | |\/| | | | | | | _ < |______| | _ / | | | |\/| | │
│ | |____ | | | | | |__| | | |_) | | | \ \ | | | | | | │
│ \_____| |_| |_| |_____/ |____/ |_| \_\ |_| |_| |_| │
│ │
└────────────────────────────────────────────────────────────────────────────┘
┌────────────────────────────────────────────────────────┐
│ ____ __ __ ____ ____ ____ _____ __ __ │
│ / ___| \/ | _ \| __ ) | _ \_ _| \/ | │
│ | | | |\/| | | | | _ \ _____ | |_) || | | |\/| | │
│ | |___| | | | |_| | |_) | |_____| | _ < | | | | | | │
│ \____|_| |_|____/|____/ |_| \_\|_| |_| |_| │
│ │
└────────────────────────────────────────────────────────┘
67 changes: 37 additions & 30 deletions bin/.bash_colors
Original file line number Diff line number Diff line change
@@ -1,38 +1,45 @@
## ------------------------------------------------------------------------ ##
## Colors definitions (taken from Color Bash Prompt HowTo) ##
## Colors definition (from "Color Bash Prompt" HowTo) ##
## ------------------------------------------------------------------------ ##

## Normal Colors
Black='' # Black
Red='' # Red
Green='' # Green
Yellow='' # Yellow
Blue='' # Blue
Purple='' # Purple
Cyan='' # Cyan
White='' # White
## Normal Colors ##
Black=''
Red=''
Green=''
Yellow=''
Blue=''
Purple=''
Cyan=''
White=''
Gray=''
Orange=''

## Bold
BBlack='' # Black
BRed='' # Red
BGreen='' # Green
BYellow='' # Yellow
BBlue='' # Blue
BPurple='' # Purple
BCyan='' # Cyan
BWhite='' # White
## Bold ##
BBlack=''
BBlue=''
BCyan=''
BRed=''
BGreen=''
BYellow=''
BPurple=''
BWhite=''
BGray=''

## Background
On_Black='' # Black
On_Red='' # Red
On_Green='' # Green
On_Yellow='' # Yellow
On_Blue='' # Blue
On_Purple='' # Purple
On_Cyan='' # Cyan
On_White='' # White
## Background ##
On_Black=''
On_Red=''
On_Green=''
On_Yellow=''
On_Blue=''
On_Purple=''
On_Cyan=''
On_White=''
On_Gray=''

NC='' # Color Reset
ALERT=${BWhite}${On_Red} # Bold White on red background
## Color Reset ##
NC=''

## Helpers ##
ALERT=${BWhite}${On_Red}

## ------------------------------------------------------------------------ ##
41 changes: 24 additions & 17 deletions bin/Colors
Original file line number Diff line number Diff line change
@@ -1,39 +1,46 @@
## ------------------------------------------------------------------------ ##
## Colors definitions (taken from Color Bash Prompt HowTo) ##
## Colors definition (from "Color Bash Prompt" HowTo) ##
## ------------------------------------------------------------------------ ##

## Normal Colors
## Normal Colors ##
Black=
Red=
Green=
Yellow=
Blue=
Purple=
Cyan=
Gold=
Gray=
Green=
Orange=
Purple=
Red=
White=
Yellow=

## Bold
## Bold ##
BBlack=
BBlue=
BCyan=
BRed=
BGray=
BGreen=
BYellow=
BPurple=
BRed=
BWhite=
BYellow=

## Background
On_Red=
On_Green=
On_Yellow=
## Background ##
On_Black=
On_Blue=
On_Purple=
On_Cyan=
On_Gray=
On_Green=
On_Purple=
On_Red=
On_White=
On_Black=
On_Yellow=

## Helpers
## Color Reset ##
NC=
ALERT=${BWhite}${On_Red}

## Helpers ##
ALERT=$(BYellow)$(On_Red)

## ------------------------------------------------------------------------ ##
9 changes: 9 additions & 0 deletions bin/Empty.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Empty Makefile ##
## ┌────────────────────────────────────────────────────────┐
## │ ____ __ __ ____ ____ ____ _____ __ __ │
## │ / ___| \/ | _ \| __ ) | _ \_ _| \/ | │
## │ | | | |\/| | | | | _ \ _____ | |_) || | | |\/| | │
## │ | |___| | | | |_| | |_) | |_____| | _ < | | | | | | │
## │ \____|_| |_|____/|____/ |_| \_\|_| |_| |_| │
## │ │
## └────────────────────────────────────────────────────────┘
Loading

0 comments on commit 46f4c29

Please sign in to comment.