Skip to content

Latest commit

 

History

History
81 lines (52 loc) · 1.58 KB

File metadata and controls

81 lines (52 loc) · 1.58 KB

Testing locally 🚀

To run CISO Assistant Enterprise locally in a straightforward way, you can use Docker compose.

  1. Make sure you are located in the enterprise directory of the repository

  2. Launch docker-compose script with enterprise docker-compose.yml file:

./docker-compose-build.sh -f enterprise/docker-compose-build.yml

When asked for, enter your email and password for your superuser.

You can then reach CISO Assistant using your web browser at https://localhost:8443/

Setting up CISO Assistant Enterprise for development

Note

This section assumes that you have already set up the community frontend and backend, and use poetry for managing the backend dependencies.

Running the backend

  1. Go to community backend directory.
cd ../backend
  1. Open poetry shell.
poetry shell
  1. Install enterprise backend module.
cd ../enterprise/backend
poetry install
  1. Set the SQLITE_FILE environment variable if you use SQLite.
export SQLITE_FILE=db/ciso-assistant-enterprise.sqlite3
  1. Apply migrations.
poetry run ./manage.sh migrate
  1. Create a Django superuser, that will be CISO Assistant administrator.
poetry run ./manage.sh createsuperuser
  1. Run the development server.
poetry run ./manage.sh runserver

Running the frontend

  1. cd into the enteprise frontend directory.
cd enterprise/frontend
  1. Start a development server (make sure that the django app is running).
make dev
  1. Reach the frontend on http://localhost:5173