πQuick Start Guide
Dive into seamless conversational data interaction with our Quick Start guide. Here, we outline the installation process and basic configurations needed to swiftly get ChatGPTFirewall operational. Letβs dive in.
Installation Steps
Clone the Repository Begin by cloning the project repository to your local machine. Open your terminal and run the following command:
git clone https://gitlab.hs-flensburg.de/forschungsprojekt/confidential-cloud-computing.gitNavigate to the Project Directory Change your directory to the cloned project using:
cd confidential-cloud-computingConfigure Auth0 Settings: Create a single page application, a custom API, and a machine-to-machine application in your Auth0 tenant. You will need the domain and audience from these settings for the next steps.
Configure Environment Variables Copy the example environment file and rename it to
.env:cp .env.example .envOpen the
.envfile in your editor and adjust the variables as necessary. Particularly, ensure theOPEN_AI_KEYis set correctly to activate ChatGPT responses. Define theVITE_*environment variables according to your setup. For Auth0 configuration, setJWT_AUDIENCEto the identifier of your Auth0 API andJWT_ISSUERto your Auth0 domain, both of which can be found in your Auth0 dashboard.Build and Start the Application Utilize Docker to build and start the application by running:
docker compose up --buildThe
--buildflag is crucial for building Docker images before the containers are started, especially after modifications to the.envfile or updates inPipfile.
Your ChatGPTFirewall application should now be accessible at http://localhost:5173/.
Further Configuration and Commands
After the initial installation, you might want to configure the database or create demo users. Follow these additional steps for further configuration:
Move to the Application Directory Navigate to the
chat_with_your_datadirectory within the project:cd chat_with_your_dataNote: The following commands should be executed within this directory.
Database Migrations
Autogenerate Migrations: Run the following command to create new database migrations automatically:
python manage.py makemigrationsApply Migrations: Apply these migrations to your database to update its schema:
python manage.py migrate
Managing Demo Users
Create Demo Users: To create demo users along with demo files, execute:
python manage.py create_demo_usersDelete Demo Users: If you wish to clean up demo data, you can delete demo users by running:
python manage.py delete_demo_users
You're all set! Youβve successfully installed ChatGPTFirewall and are ready to explore its features. Enjoy your journey into conversational data interaction!
Last updated