https://github.com/ivanceras/diwata_cli
https://github.com/ivanceras/diwata_cli
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ivanceras/diwata_cli
- Owner: ivanceras
- Created: 2018-05-02T12:02:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-23T18:58:38.000Z (over 7 years ago)
- Last Synced: 2024-04-14T00:47:21.999Z (over 1 year ago)
- Language: JavaScript
- Size: 5.74 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Diwata CLI
This repo is part of [diwata](https://github.com/ivanceras/diwata) project.
This contains a precompiled static html files which you can compile yourself
refer to the main diwata project.
## Quickstart
If you have an existing postgresql database, you can quickly open it using the app by:
```sh
cargo install diwata_cli
diwata_cli --db-url postgres://user:passwd@localhost:5432/dbname -p 8000 --open
```
You can also open sqlite database.
Download this [sqlite sample db](https://github.com/ivanceras/sakila/raw/master/sqlite-sakila-db/sakila.db)
You can then open it by issuing the command
```
diwata_cli --db-url sqlite://sakila.db -p 80001 --open
```
```
USAGE:
diwata_cli [OPTIONS]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-a, --address
The address the server would listen, default is 0.0.0.0 [default: 0.0.0.0]
-u, --db-url Database url to connect to, when set all data is exposed without login needed in the
client side
-p, --port What port this server would listen to, default is 8000 [default: 8000]
```