Skip to content

pemmenegger/compas-webviewer

 
 

Repository files navigation

COMPAS WebViewer

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...

Installation

Set up the Vue project.

yarn install

Install COMPAS and other required Python packages.

pip install -r requirements.txt

Starting the Client

To start the frontend development server with hot-reload, run the following command. The server will be accessible at http://localhost:3000:

yarn dev

Starting the Server

To start the COMPAS backend server:

python server.py

Usage

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.

About

COMPAS WebViewer using Vue, ThreeJS, FastAPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 63.7%
  • JavaScript 23.7%
  • Python 10.9%
  • HTML 1.7%