chore(doc): add readme file
This commit is contained in:
parent
dac9a26a3a
commit
f60a6f1204
1 changed files with 24 additions and 0 deletions
24
README.md
Normal file
24
README.md
Normal file
|
|
@ -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
|
||||||
|
```
|
||||||
Loading…
Reference in a new issue