https://github.com/andream16/go-storm
Golang PSQL ORM for Price Probe.
https://github.com/andream16/go-storm
docker docker-compose go golang negroni postgres pq
Last synced: 8 months ago
JSON representation
Golang PSQL ORM for Price Probe.
- Host: GitHub
- URL: https://github.com/andream16/go-storm
- Owner: andream16
- Created: 2017-10-09T20:04:46.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-05T10:50:11.000Z (over 7 years ago)
- Last Synced: 2025-02-17T14:53:56.927Z (8 months ago)
- Topics: docker, docker-compose, go, golang, negroni, postgres, pq
- Language: Go
- Homepage:
- Size: 90.8 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-storm
Golang PSQL ORM for Price Probe.# Run with Docker Compose:
- Install and Start Docker: `yaourt -S docker`, `sudo systemctl start docker`
- Install Docker Compose: `yaourt -S docker-compose`
- Run `docker-compose up`.## Other useful commands
### Docker
- Run with no output `docker-compose up -d`
- Stop with `docker-compose down`
- Stop and remove images with `docker-compose down --rmi all`
- Open Shell on one container with `docker exec -i -t container_id /bin/bash`### Postgresql
- Dump: `sudo -u postgres pg_dump -a -h xx.xxx.xxx.xxx -p xxxx -U postgres -d priceprobe > path_to_store_backup.sql`
- Restore: `sudo -u postgres psql -h xx.xxx.xxx.xxx -p xxxx -U postgres -d priceprobe < path_to_backup.sql`# Run with Goland
- Start PostgresSQL: `sudo systemctl start postgresql`
- Create a Database called `priceprobe`
- Edit your Run configuration program's arguments by passing `-environment=development`