Skip to content

Kitware provides Trame, an open-source oriented framework with a Python-centric API and built on VueJs. This repo is implemented for Advent of Code

License

Notifications You must be signed in to change notification settings

jph6366/trame-aoc

Repository files navigation

trame-aoc

Advent of Code using Trame!

DEMO DEMO IS DOWN TIL NEXT HOLIDAY SEASON!

Trame offers the ability to write pythonic front end code and allows for easy to use customization (through available widgets and out of box libraries) and the innate ability to work seamlessly locally and across the web.

Originally inspired by https://github.com/mgtezak/Advent-of-Code-Puzzle-Solver Their use of streamlit ( another Python framework to build interactive web apps ) motivated my initialization of my own version to begin my Trame development experience.

  • Free software: MIT License

Installing

Configure, Build, and Install Cpp Project .. code-block:: console

cd wasm-components/aoc-cpp
emcmake cmake -S . -B build
emmake cmake --build build --target aoc-2024-wasm

then move the generated 'aoc-2024-wasm.mjs', and 'aoc-2024-wasm.wasm' to trame_aoc/module/serve/wasm/ to reflect the registered modules using wasm.py C++23 project for advent of code mirrored from https://github.com/PascalGuenther/AdventOfCode2024/ And the aoc-2024-wasm executable command mirror Kitware's vtkWasmSceneManager: https://gitlab.kitware.com/vtk/vtk/-/tree/master/Web/WebAssembly

Build and install the Vue components

.. code-block:: console

cd vue-components
npm i
npm run build
cd -

Install the application

.. code-block:: console

pip install -e .

Run the application

.. code-block:: console

trame-aoc

TODO

  • Azure Web App Container
  • Fill out all solutions (1-25)
  • Refactor Code Showcase to use trame-code
  • Support more languages to solve puzzles in (R,TypeScript, C, Rust, etc.)
  • Add trame-vtk(or vtkLocal) for rendering and observing problem and generated/inputted solution simultaneously

About

Kitware provides Trame, an open-source oriented framework with a Python-centric API and built on VueJs. This repo is implemented for Advent of Code

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published