No description
Find a file
2024-08-09 11:51:24 +00:00
cmd/tools/terndotenv feat: add wrapper to tern 2024-08-09 11:10:54 +00:00
internal/store/pgstore feat: add simple query 2024-08-09 11:51:24 +00:00
.env fix: environment variable names 2024-08-09 11:03:59 +00:00
compose.yml fix: environment variable names 2024-08-09 11:03:59 +00:00
go.mod feat: add wrapper to tern 2024-08-09 11:10:54 +00:00
go.sum fix: add missing go.sum file 2024-08-09 11:41:42 +00:00
README.md chore(doc): add tern's wrapper documentation 2024-08-09 11:15:28 +00:00

Introduction

This project aims to create a AMA style page using react on frontend and go on backend.

Initialize project

$ go mod init forgejo.home.viniciussouza.me/learning/go-react-server

Database migrations

Installing tern

$ go install github.com/jackc/tern/v2@latest

Creating migrations

$ tern new --migrations ./internal/store/pgstore/migrations create_rooms_table
$ tern new --migrations ./internal/store/pgstore/migrations create_messages_table

Wrapper around tern

tern.config does not read .env file directly so a wrapper was created to be able to load environment variables.