https://github.com/mackee/template-tanukistack
A project template for the development of web application in Go
https://github.com/mackee/template-tanukistack
Last synced: about 1 year ago
JSON representation
A project template for the development of web application in Go
- Host: GitHub
- URL: https://github.com/mackee/template-tanukistack
- Owner: mackee
- License: mit
- Created: 2025-02-13T14:27:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-14T17:29:23.000Z (over 1 year ago)
- Last Synced: 2025-06-20T06:57:13.920Z (about 1 year ago)
- Language: Go
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Template of tanukistack
## What is tanukistack?
Tanukistack is a template for the development of web application. This contains the following components:
* [tanukirpc](https://github.com/mackee/tanukirpc): Web Framework
* [sqlla](https://github.com/mackee/go-sqlla): ORMapper
* [genddl](https://github.com/mackee/go-genddl): DDL Generator
## How to use
### Requirements
* `gonew` command
```sh
$ go install golang.org/x/tools/cmd/gonew@latest
```
* [aqua](https://github.com/aquaproj/aqua)
* PostgreSQL
### Create a new project
```sh
$ gonew github.com/mackee/template-tanukistack path/to/your/module ./your_directory
$ cd path/to/your/project
$ aqua i
```
### Settings
`.env` file is required to run the application. Create a `.env` file in the root directory of the project and write the following contents.
```sh
$ echo 'DATABASE_DSN="postgres://user:password@localhost:5432/dbname?sslmode=disable"' > .env
```
### Run the application
```sh
$ task dev
```
### Run the test
```sh
$ task test
```
# License
MIT