From f60a6f1204fceff8645d40a0fefed8ca228cba9d Mon Sep 17 00:00:00 2001 From: Vinicius Souza Date: Thu, 8 Aug 2024 15:10:22 +0000 Subject: [PATCH] chore(doc): add readme file --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..11a42e5 --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# Introduction + +This project aims to create a AMA style page using `react` on frontend and `go` on backend. + +## Initialize project + +```bash +$ go mod init forgejo.home.viniciussouza.me/learning/go-react-server +``` + +## Database migrations + +### Installing tern + +```bash +$ go install github.com/jackc/tern/v2@latest +``` + +### Creating migrations + +```bash +$ tern new --migrations ./internal/store/pgstore/migrations create_rooms_table +$ tern new --migrations ./internal/store/pgstore/migrations create_messages_table +```