https://github.com/vvanglro/gin-ent
gin + ent + migrate + jwt + embed + air
https://github.com/vvanglro/gin-ent
air ent gin
Last synced: 5 months ago
JSON representation
gin + ent + migrate + jwt + embed + air
- Host: GitHub
- URL: https://github.com/vvanglro/gin-ent
- Owner: vvanglro
- Created: 2022-05-07T09:25:36.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-13T10:16:34.000Z (about 4 years ago)
- Last Synced: 2025-08-23T01:31:03.097Z (10 months ago)
- Topics: air, ent, gin
- Language: Go
- Homepage:
- Size: 142 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gin + ent + migrate + jwt + embed + air
## project run
1. set conf/conf.yaml
2. go generate ./models/ent
3. go run cli.go (Generate migration file)
4. go run cli.go -w=true (Migration files to database)
5. air -c conf/.air.toml
## Default User
```shell
curl --location --request POST 'http://localhost:8080/api/login' \
--header 'Content-Type: application/json' \
--data-raw '{"username":"admin", "password":"123456"}'
```