├── src
├── main.js
└── App.svelte
├── .gitignore
├── makefile
├── public
├── favicon.png
├── index.html
└── global.css
├── README.md
├── templates
└── mainpage.html
├── go.mod
├── main.go
├── package.json
├── .session.vim
├── rollup.config.js
├── scripts
└── setupTypeScript.js
└── go.sum
/src/main.js:
--------------------------------------------------------------------------------
1 | import App from './App.svelte';
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /node_modules/
2 | /public/build/
3 |
4 | .DS_Store
5 |
--------------------------------------------------------------------------------
/makefile:
--------------------------------------------------------------------------------
1 | run:
2 | npm run dev & go run .
3 | build:
4 | npm run build
5 |
--------------------------------------------------------------------------------
/public/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ksckaan1/go-and-svelte-template/HEAD/public/favicon.png
--------------------------------------------------------------------------------
/src/App.svelte:
--------------------------------------------------------------------------------
1 |
4 |
My App
6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Created for my blog article 2 | 3 | https://dev.to/ksckaan1/creating-a-website-using-golang-and-sveltejs-together-55g8 4 | 5 | Before lauch, run `npm install` from command line. 6 | 7 | -------------------------------------------------------------------------------- /templates/mainpage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |