Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.
/ automarked Public archive

Atomarked is a web based application for configuration and management of network devices via netconf using its Yang model.

Notifications You must be signed in to change notification settings

umardx/automarked

Repository files navigation

Introduction Automarked

Atomarked is a web based application for configuration and management of network devices via Netconf using its Yang data model. This web application is development using python flask and its still in the development.

Important file and folder structure after setup

$ tree -L 2 .
./
├── database
│   └── app.db
├── docker-compose.yml
├── Dockerfile
├── entrypoint.sh
├── log
├── main
│   ├── auth
│   ├── config_app.py
│   ├── config_celery.py
│   ├── dashboard
│   ├── events.py
│   ├── home
│   ├── __init__.py
│   ├── models.py
│   ├── __pycache__
│   ├── static
│   ├── tasks.py
│   └── templates
├── migrations
│   ├── alembic.ini
│   ├── env.py
│   ├── __pycache__
│   ├── README
│   ├── script.py.mako
│   └── versions
├── Pipfile
├── __pycache__
│   └── run.cpython-36.pyc
├── README.md
├── run.py
└── setup.sh

Setup

  1. Clone this repo
$ git clone https://github.com/umardx/automarked.git
  1. Install pipenv via pip. To install pip, use the following link or by an easy way you think, as long as there is a pip on your OS.
$ pip install pipenv
  1. Install python packages via pipenv
$ cd automarked
$ pipenv install --dev

or

$ cd automarked
$ pipenv run pip install -r .requirements.txt
  1. Enter mode virtualenv via pipenv
$ pipenv shell
  1. Intialize db
(automarked-pZFT...)$ flask db init
(automarked-pZFT...)$ flask db migrate
(automarked-pZFT...)$ flask db upgrade 
  1. Run app
(automarked-pZFT...)$ python run.py

Important : to activate websocket emit from task queue, add the following line to file hosts at /etc/hosts:

127.0.0.1	localhost webapp redis

Docker

For fast and simple testing/development deployment, you can use the prepared docker image from my dockerhub repository. There are three services namely webapp as web service, worker as task queue service, and redis as message broker service. You can do deploy with docker-compose in this repo root directory as follows:

$ cd automarked
$ docker-compose up -d --build
or
$ docker-compose up -d

And then open url : http://localhost:8000 at the browser. To monitor task queue and the broker running, open url http://localhost:8888

About

Atomarked is a web based application for configuration and management of network devices via netconf using its Yang model.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published