npm install -g @vue/cli
rustup target add wasm32-unknown-unknown --toolchain nightly
cargo +nightly install wasm-bindgen-cli
cd csv2sql
cargo +nightly build --target wasm32-unknown-unknown
wasm-bindgen target/wasm32-unknown-unknown/debug/csv2sql.wasm --out-dir ..\ui\src\csv2sql\
cd ../ui
npm i
npm run serve
for developmentnpm run build
for production
npm run test
npm run lint
Depending on where the project will be hosted you should update the configuration in vue.config.js
publicPath: process.env.NODE_ENV === 'production'
? '' //here the relative path e.g. if you plan to host it in github pages [username].github.io/[repoName], the value if true should be [repoName]
: ''
Navigate into the ui directory and run
npm run build