Compare commits

..

No commits in common. "main" and "feat/docker-image" have entirely different histories.

5 changed files with 18 additions and 82 deletions

View File

@ -9,4 +9,3 @@ RUN npm run build
FROM nginx:mainline-alpine3.20-slim as runtime
COPY --from=builder /brunsviga/dist /usr/share/nginx/html/
RUN chown -R 1000:1000 /usr/share/nginx/html/

View File

@ -1,8 +0,0 @@
Copyright 2024 Sven Vogel
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -1,52 +1,2 @@
<div align="center">
<img alt="banner" src="./assets/brunsviga_banner.svg" width="60%"/>
<br>
<h2>Technology demonstration for 3D simulation of Brunsviga RK 13</h2>
</div>
<div align="center" >
<img src="./assets/preview.png" alt="preview" width="60%"/>
</div>
---
This repository is a demonstration of web technologies that might be used for simulating the Brunsviga RK 13 mechanical calculator.
The demo is designed to be small and lightweight in deploment.
We use `vite` as the build system for a `react.js` web application that makes use `three.js` WebGL capabilites in order to render 3D objects and animate them in realtime.
Typescript is the preferred language as it offers relative type-safety during development.
The user interface is styled with `tailwindcss` and will refer to the paper, source code and some refernce documentation for the Brunsviga RK 13.
The built application can be delpoyed via a static web server such as Nginx (see docker container).
## ☁️ Technology Stack
- Vite
- React
- Tailwind CSS
- Three.js
## 🚀 Getting Started
In order to get started, clone the repository:
```
git clone https://git.montehaselino.de/servostar/brunsviga-demo.git
```
Then build compile the application and run in development mode:
```
npm ci && npm run dev
```
## 🐋 Docker Container
The application can be build and launched in a multi stage container:
```
docker build --tag brunsviga-demo:latest .
```
Then run the container on port 80:
```
docker run -p 80:80 brunsviga-demo:latest
```
<img alt="banner" src="./assets/brunsviga_banner.svg" width="100%"/>

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 109 KiB

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB