summaryrefslogtreecommitdiff
path: root/Readme.md
blob: 60dbd3255a10111a9aaff5e78143f92cc5057355 (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 VCard Generator

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