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 +```