This repo provides a basic Vue + ThreeJS + FastAPI setup for experimenting with COMPAS in the browser. The repo is configured for local development, with COMPAS running on a local server...
Set up the Vue project.
yarn install
Install COMPAS and other required Python packages.
pip install -r requirements.txt
To start the frontend development server with hot-reload, run the following command. The server will be accessible at http://localhost:3000:
yarn dev
To start the COMPAS backend server:
python server.py
The viewer is available at http://localhost:3000. It has a few buttons that run some basic functions on the server and visualise the result in the ThreeJS CAD environment.
The "Getting Started" button runs the code from the corresponding example on the COMPAS main website: Getting Started.