An open API service indexing awesome lists of open source software.

https://github.com/yskszk63/my-csv-editor

CSV editor
https://github.com/yskszk63/my-csv-editor

csv rust wasm

Last synced: 4 months ago
JSON representation

CSV editor

Awesome Lists containing this project

README

          

# My CSV editor

CSV editor for my Rust and WASM study.
(currently can not be save)

[Demo](https://yskszk63.github.io/my-csv-editor/)
[![dependency status](https://deps.rs/repo/github/yskszk63/my-csv-editor/status.svg)](https://deps.rs/repo/github/yskszk63/my-csv-editor)

## How do it run.

Examples -> ubuntu:21.04

### 0. Precondtion

- build environment.
- Node.js & npm
- git
- Rust ([rustup](https://rustup.rs/))
- [wasm-pack](https://github.com/rustwasm/wasm-pack)

```bash
$ sudo apt install build-essential nodejs npm git
...
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
...
```

#### 0-1. Install wasm-pack

Download

```bash
$ TMPDIR=`mktemp -d`
$ curl -L 'https://github.com/rustwasm/wasm-pack/releases/download/v0.9.1/wasm-pack-v0.9.1-x86_64-unknown-linux-musl.tar.gz' | tar -zxf - -C $TMPDIR
...
$ mv $TMPDIR/wasm-pack-v0.9.1-x86_64-unknown-linux-musl/wasm-pack ~/.local/bin/
$ wasm-pack --version
wasm-pack 0.9.1
```

or `cargo install`

```bash
$ cargo install wasm-pack
...
```

### 1. Clone repository & Initialize

```bash
$ git clone https://github.com/yskszk63/my-csv-editor
...
$ cd my-csv-editor
$ npm install
...
```

### 2. Run locally

```bash
$ npm start
```

Listen at http://localhost:8000/

### 3. Build

```bash
$ npm run build
...
$ ls dist/{*.css,*.wasm,index.*}
dist/bundle.css dist/fc37c871845c1cfd91f2.module.wasm dist/index.html dist/index.js
```

## License

Licensed under either of

* Apache License, Version 2.0
([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license
([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)

at your option.

## Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.