mirror of
https://github.com/aziis98/go-vite-kit.git
synced 2026-10-06 22:24:52 +00:00
2d1ecedcf0c0ac90d135bea4cbf81ee9c8dce5cc
Go Vite Kit
Minimal boilerplate project for a Golang server using Fiber and ViteJS for static pages
Features
Architecture
-
_frontend/This is a Vite project for building all the static pages used by this app.
-
database/Module with a
Databaseinterface and two implementation:memDBis an in-memory database for testing purposes whilesqliteDBis a wrapper for working with an SQLite database. -
routes/Various functions for configuring all the server routes.
Usage
First install the required npm packages
$ cd _frontend
_frontend/ $ npm install
Development
# Development
$ MODE=dev go run -v .
# Development with watcher
$ fd -e go | MODE=dev entr -r go run -v .
Production
First build the _frontend/dist folder using
$ cd _frontend
$ npm run build
and then
# Production
$ go run -v .
Description
Minimal boilerplate with a golang server using Fiber and ViteJS for static pages
72 KiB
Languages
Go
47.9%
JavaScript
39.6%
SCSS
7.9%
HTML
4.6%