Skip to content

Commit

Permalink
Add admin UI documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Jun 27, 2022
1 parent 0a71eaa commit f2093b9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/dictpress/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func initDB(host string, port int, user, pwd, dbName string) *sqlx.DB {
db, err := sqlx.Connect("postgres",
fmt.Sprintf("host=%s port=%d user=%s password=%s dbname=%s sslmode=disable", host, port, user, pwd, dbName))
if err != nil {
lo.Fatalf("error intiializing DB: %v", err)
lo.Fatalf("error initializing DB: %v", err)
}

return db
Expand Down
1 change: 1 addition & 0 deletions docs/documentation/docs/admin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The admin UI is accessible at `http://localhost:9000/admin`. Replace the hostname and port with your installation.
2 changes: 2 additions & 0 deletions docs/documentation/docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ dictpress requires Postgres ⩾ v10.
- `./dictpress --install` to install the tables in the Postgres DB.
- Run `./dictpress` and visit `http://localhost:9000/admin`.

See [Importing data](../import) to populate the dictionary database from CSVs.


## Compiling from source

Expand Down
1 change: 1 addition & 0 deletions docs/documentation/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ nav:
- "Data structure": data-structure.md
- "Templates": templates.md
- "Importing data": import.md
- "Admin UI": admin.md
- "Public APIs":
- "Config": api/config.md
- "Search": api/search.md
Expand Down

0 comments on commit f2093b9

Please sign in to comment.