https://github.com/saturninoabril/dashboard-server
https://github.com/saturninoabril/dashboard-server
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/saturninoabril/dashboard-server
- Owner: saturninoabril
- License: apache-2.0
- Created: 2021-05-23T08:35:17.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-11T11:41:02.000Z (over 3 years ago)
- Last Synced: 2025-01-15T13:12:44.175Z (5 months ago)
- Language: Go
- Size: 2.8 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dashboard-server
### Build and Install
Then build and install the binary:```
$ go install ./...
```### To spin up the server locally
```
$ make start
```### Create database migration
Install golang-migrate, refer to https://github.com/golang-migrate/migrate/tree/master/cmd/migrate
```
export DASHBOARD_DATABASE='postgres://dashboarduser:dashboardpwd@localhost:5433/dashboard_dev?sslmode=disable'
migrate create -ext sql -dir store/migrations/migrations_files -seq# Manual migration
migrate -database ${DASHBOARD_DATABASE} -path store/migrations/migrations_files up
migrate -database ${DASHBOARD_DATABASE} -path store/migrations/migrations_files down
```