- Ensure you have the Protocol Buffer Compiler installed globally. In case of Windows machines, please add
protoc
to your path. - Run
npm run install
- Run
npm run proto
You may install the Vue Volar extension Pack
if you're using Visual Stuido Code as your IDE & plan to edit the front-end code; otherwise, skip to the next step.
Make sure to run Visualization
module first followed by the Collection
module:
- Run
npm run v:dev
- Run
npm run c:dev
- Run
npm run format
- Create an empty file called
.env
under thecollection
directory and add this line to the file to indicate the server and port number for our GRPC host:
GRPC_HOST=localhost:50051
- similarly, create an empty
.env
file under thevisualization
directory and add this to indicate server and port number for our GRPC host, MonogoDB, and Minio:
GRPC_HOST=localhost:50051
MONGO_HOST=mongodb://127.0.0.1/cathpilot
MINIO_HOST=localhost
MINIO_PORT=9000
VITE_MINIO_ENDPOINT=127.0.0.1:9000
MINIO_ACCESS_KEY=your_minio_access_key
MINIO_SECRET_KEY=your_minio_secret_key
AWS_ACCESS_KEY_ID=your_aws_access_key
AWS_SECRET_ACCESS_KEY=your_aws_secret_key
BUCKETS_REGION=us-east-2
BUCKET_NAME=your_bucket_name
For more information, you can always refer to .env.template
files under visualization
and collection
directories.
Please refer to our README file for more information.
Please download Minio Server and run it before firing the app.
Example for Windows machine: ./minio.exe server ./
- Make sure to run
c:dev
after the visualization module is up and running. If you encounter an error after runningnpm run c:dev
too quickly, please try again. This won't be an issue in the prod version. - Should you encounter the following (or similar) error in the visualization module after pulling in new changes or installing a new library, you may delete the
visualization > dist
directory and try runningnpm run v:dev
again:Error: The following dependencies are imported but could not be resolved: Index.js (imported by C:/code/cathpilot/visualization/dist/bg/server-dev.html)
)