missdiog / DongTai-webapi

DongTai-WebAPI is used to DongTai IAST user resource management

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DongTai-webapi

django-project DongTai-project DongTai--webapi Deploy DongTai WebApi To AWS

中文版本(Chinese version)

Whit is DongTai-WebApi?

DongTai-WebAPI is used to user resource management ,including:

  • Project management
  • Vulnerability management
  • User data retrieval
  • System resources configuration
  • User/role management
  • Agent deployment management
  • Tenant management
  • Deployment document retrieval

Deploy

  • Source code deployment
  • Docker deployment

Source code deployment

1.Initialize the database

  • Install MySql 5.7, create the database DongTai-webapi, and run the database file conf/db.sql
  • Enter the webapi directory and run the python manage.py createsuperuser command to create an administrator

2.Modify the configuration file

  • Copy the configuration file conf/config.ini.example to conf/config.ini and change the configuration; the url corresponding to engine is the service address of DongTai-engine, and the url corresponding to apiserver is the service address of DongTai-openapi

3.Run the service

  • Run python manage.py runserver to start the service

Container deployment

1.Initialize the database

  • Install MySql 5.7, create the database DongTai-webapi, and run the database file conf/db.sql
  • Enter the webapi directory and run the python manage.py createsuperuser command to create an administrator
  1. Modify the configuration file

Copy the configuration file conf/config.ini.example to conf/config.ini and change the configuration; among them:

  • The URL corresponding to the engine is the service address of DongTai-engine
  • The url corresponding to apiserver is the service address of DongTai-openapi

3.Build the image

$ docker build -t huoxian/dongtai-webapi:latest .

4.Start the container

$ docker run -d -p 8000:8000 --restart=always --name dongtai-webapi huoxian/dongtai-webapi:latest

More resources

About

DongTai-WebAPI is used to DongTai IAST user resource management

License:Apache License 2.0


Languages

Language:Python 99.4%Language:Shell 0.5%Language:Dockerfile 0.1%