summaryrefslogtreecommitdiff
path: root/Readme.md
blob: ca02f40707d60ac2aaac851144371fb695c4019e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<div align="center">

  <h1><code>wasmCard</code></h1>
  <strong>An Online vCard Generator written in Rust.</strong>

</div>

## 📚 About

A WebAssebmly Web App

Supports generating vCards (.vcf), print-ready PDF business cards and QR Codes.

## 🎮 Features

* Supported properties as of yet: name, address, telephone
* Output and Download as vCard (.vcf)
* Output and Download as QR Code
* Generates a dummy PDF

## 🗺 Roadmap

* Add more properties
* Button for adding more of one type of property (Support is already there)
* Put generation and download both in download button
* Generate PDF

## 🚲 Usage

### 🛠️ Needed tools

* [Standard rust toolchain](https://www.rust-lang.org/tools/install)
* [wasm-pack](https://rustwasm.github.io/wasm-pack/installer/)
* HTTP Server (python has one!)


### 📦 Build with `wasm-pack build`

```
wasm-pack build --target web
```

### 🔍 Use the debug flag for tracing errors

```
wasm-pack build --debug --target web
```

### 🎬 Run on python server

```
python -m http.server 8000
```