pgweb/README.md

90 lines
2.0 KiB
Markdown
Raw Normal View History

2014-10-08 21:29:43 -05:00
# pgweb
2014-10-10 21:06:08 -05:00
Web-based PostgreSQL database browser written in Go.
2014-10-08 21:29:43 -05:00
2014-10-13 21:02:04 -05:00
## Overview
This is a web-based browser for PostgreSQL database server. Its written in Go
and works on Mac OSX, Linux and Windows machines. Main idea behind using Go for the backend
is to utilize language's ability for cross-compile source code for multiple platforms.
This project is an attempt to create a very simple and portable application to work with
PostgreSQL databases.
## Installation
Please visit [Github Releases](https://github.com/sosedoff/pgweb/releases) to download a
precompiled binary for your operating system.
Currently supported:
2014-10-13 21:03:42 -05:00
- Mac OSX 64bit
2014-10-13 21:02:04 -05:00
- Linux 32/64bit
- Windows 32/64bit
2014-10-08 21:29:43 -05:00
## Usage
2014-10-13 21:03:42 -05:00
Start server:
```
pgweb
```
Application will try to connect to the local PostgreSQL server with `postgresql`
user and select `postgresql` database. You can specify connection flags, like
database, host or user. See `CLI` section of this readme.
2014-10-13 21:02:04 -05:00
You can also specify a connection URI instead of settings individual connection settings:
```
pgweb --url postgresql://user:password@host:port/database
```
It works great with [Heroku Postgres](https://postgres.heroku.com) if you need
to troubleshoot production database or simply run a few queries.
## CLI
2014-10-08 21:29:43 -05:00
CLI options:
```
2014-10-13 21:02:04 -05:00
Usage:
pgweb [OPTIONS]
Application Options:
-d Enable debugging mode (false)
--url= Database connection string
--host= Server hostname or IP (localhost)
--port= Server port (5432)
--user= Database user (postgres)
--db= Database name (postgres)
--ssl= SSL option (disable)
2014-10-08 21:29:43 -05:00
```
2014-10-10 21:06:08 -05:00
## Compile from source
2014-10-08 21:54:49 -05:00
2014-10-10 21:06:08 -05:00
Go 1.3+ is required. You can install Go with `homebrew`:
2014-10-08 21:54:49 -05:00
```
2014-10-10 21:06:08 -05:00
brew install go
2014-10-09 19:23:19 -05:00
```
2014-10-10 21:06:08 -05:00
To compile source code run the following command:
2014-10-08 21:29:43 -05:00
```
2014-10-13 18:31:28 -05:00
make deps
make dev
2014-10-09 19:23:19 -05:00
```
2014-10-13 21:02:04 -05:00
This will produce `pgweb` binary in the current directory.
## Contributors
- Dan Sosedoff - https://twitter.com/sosedoff
- Masha Safina - https://twitter.com/mashasafina
- Jeff Canty - https://twitter.com/cantyjeffrey
## License
The MIT License (MIT)
Copyright (c) 2014 Dan Sosedoff, <dan.sosedoff@gmail.com>