Sign inSign up

maestroserver/analytics-front-maestro

By maestroserver

•Updated almost 5 years ago

Image
0

8.3K

maestroserver/analytics-front-maestro repository overview

⁠Maestro Server

Maestro Server is an open source software platform for management and discovery servers, apps and system for Hybrid IT. Can manage small and large environments, be able to visualize the latest multi-cloud environment state.

⁠Demo

To test out the demo, Demo Online⁠

⁠Documentation

⁠Maestro Server - Analytics Front

Analytics Front App is front end of analytics graph of Maestro Server, yours responsibility is:

  • Authentication
  • Show graphs SVGs
  • Upload internal SVGs of analytics

We using DDD to organize the code, has infra, repositories, entities (values objects), interfaces, application, and domain. Constructed with KrakenJs, we create a lot of middleware and organize by domain.

Core API, organized by modules:

  • Core
  • Authetication
  • Graph
⁠TechStack
  • NodeJs 8.11.
  • MongoDB 3.4
  • RabbitMQ
  • AWS S3 (If using S3 upload)
⁠Service relations
  • Maestro Analytics
  • Maestro Server App
  • Data App
⁠Setup
⁠Installation by docker
docker run -p 9999:9999  -e "MAESTRO_MONGO_URI=mongodb" -e "MAESTRO_MONGO_DATABASE=maestro-client"  maestroserver/analytics-front-maestro

Or by docker-compose

version: '2'

services:
    server:
    image: maestroserver/analytics-front-maestro
    ports:
    - "9999:9999"
    environment:
    - "MAESTRO_MONGO_URI=mongodb"
    - "MAESTRO_MONGO_DATABASE=maestro-client"

⁠Dev Env

Configure database and port application in .env file

MAESTRO_PORT=9999
MAESTRO_MONGO_URI='localhost'
MAESTRO_MONGO_DATABASE='maestro-client'

Development

Install nodejs, version above 7.6, and mongodb need to be running.

npm install
npm run server

Run all tests or any test type

mocha test/**/*js --reporter spec

gulp test_e2e
gulp test_unit
gulp eslint

⁠Env variables
Env VariablesExampleDescription
MAESTRO_PORT9999
NODE_ENVdevelopmentproduction
API_URLhttp://localhost:8888⁠Server app Url
MAESTRO_MONGO_URIlocalhostDB string connection
MAESTRO_MONGO_DATABASEmaestro-clientDatabase name
MAESTRO_SECRETJWTXXXXSecret key - session
MAESTRO_SECRETJWT_ANALYTICSXXXXSecret key - analytics
MAESTRO_SECRETJWT_PUBLIC_ANALYTICSXXXXSecret key - same server app
AWS_ACCESS_KEY_IDXXXX
AWS_SECRET_ACCESS_KEYXXXX
AWS_DEFAULT_REGIONus-east-1
AWS_S3_BUCKET_NAMEmaestroserver
MAESTRO_UPLOAD_TYPES3/LocalUpload mode
LOCAL_DIR/public/static/Where files will be uploaded
PWD$rootDirectoryPWD process
⁠Contribute

Are you interested in developing Maestro Server, creating new features or extending them?

We created a set of documentation, explaining how to set up your development environment, coding styles, standards, learn about the architecture and more. Welcome to the team and contribute with us.

See our developer guide⁠

Tag summary

Content type

Image

Digest

Size

413 MB

Last updated

almost 5 years ago

docker pull maestroserver/analytics-front-maestro