/
Build and Install

Build and Install

Locally

Pre-requisites:

  • Python3 & pip

  • MySQL 5.7



Clone repository:

$ git clone https://gerrit.onap.org/r/modeling/etsicatalog

$ cd etsicatalog

 

Install dependencies:

$ pip3 install -r requirements.txt

 

Create database:

$ cd /resources/dbscripts/mysql

Run modeling-etsicatalog-createdb.sql to create database.

 

Run commands followed to init database:

$ python manage.py makemigrations

$ python manage.py makemigrations database

$ python manage.py migrate

$ python manage.py migrate database

 

Review and edit \catalog\pub\config\config.py

MySQL default configuration is as follows:

DB_IP = "127.0.0.1"

DB_PORT = 3306

DB_NAME = "etsicatalog"

DB_USER = "etsicatalog"

DB_PASSWD = "etsicatalog"

 

Start server:

$ python manage.py runserver 8806

 

Test:

Run Healthcheck: http://127.0.0.1:8806/api/catalog/v1/health_check

You should get:

{"status":"active"}



 

View API document:

http://127.0.0.1:8806/api/catalog/v1/swagger

Docker

Requirements

  • Docker

  • Docker-compose

Related content

Allow underlying database to be configured: MariaDB or Postgres
Allow underlying database to be configured: MariaDB or Postgres
More like this
Run CPS-NCMP with Grafana Monitoring
Run CPS-NCMP with Grafana Monitoring
More like this
Backward Compatibility with Config DB 1.0 Interface (Dublin Impl.)
Backward Compatibility with Config DB 1.0 Interface (Dublin Impl.)
More like this
Data Dictionary API Swagger
Data Dictionary API Swagger
More like this
RAN-Sim setup
RAN-Sim setup
More like this
Liquibase Docker Testing
Liquibase Docker Testing
More like this