github.com/soypat/vectytemplater@v0.0.0-20220501050640-d40b24e35168/README.md (about)

     1  # vectytemplater
     2  Executable that generates a basic vecty application folder structure and files.
     3  
     4  ## Usage
     5  1. Install `vectytemplater` by running
     6  
     7      ```shell
     8      go install github.com/soypat/vectytemplater@latest
     9      ```
    10  
    11  2. Run `vectytemplater` in the parent directory where you want to create the folder with the first argument being name of folder.
    12  
    13      ```shell
    14      vectytemplater myproject
    15      ```
    16  3. Run `wasmserve` in the newly created directory! Navigate your browser to [`localhost:8080`](http://localhost:8080/) to see the project. Install by running `go install github.com/hajimehoshi/wasmserve@latest`.
    17      ```shell
    18      wasmserve
    19      ```
    20  
    21  4. Modify the project to your needs. Here are some initial suggestions:
    22  
    23      * Modify the module name by replacing the default value `vecty-templater-project` with your module's name in all project files.
    24  
    25      * Delete the `.vscode` folder if you are not using Visual Studio Code. It is there for intellisense to work since WASM projects targets the browser, not your local computer environment. WASM projects are compiled with Go environent variables `GOOS=js` and `GOARCH=wasm`.