No description
|
|
||
|---|---|---|
| cmd/tools/terndotenv | ||
| internal/store/pgstore/migrations | ||
| .env | ||
| compose.yml | ||
| go.mod | ||
| README.md | ||
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