Skip to content

Commit

Permalink
Merge pull request #178 from documize/sql-store
Browse files Browse the repository at this point in the history
Pluggable storage provider + PostgreSQL support
  • Loading branch information
sauls8t authored Oct 7, 2018
2 parents 2792c8c + 49f0574 commit 4aa3bba
Show file tree
Hide file tree
Showing 269 changed files with 19,912 additions and 23,948 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ npm-debug.log
debug
*.pem
*.crt
Dockerfile
container.sh
make.sh
jsconfig.json
Expand Down
25 changes: 19 additions & 6 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 20 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
> We're committed to providing frequent product releases to ensure self-host customers enjoy the same product as our cloud/SaaS customers.
> We provide frequent product releases ensuring self-host customers enjoy the same features as our cloud/SaaS customers.
>
> Harvey Kandola, CEO & Founder, Documize Inc.
Expand Down Expand Up @@ -58,26 +58,41 @@ Space view.

## Latest version

[Community edition: v1.70.0](https://github.com/documize/community/releases)
[Community edition: v1.71.0](https://github.com/documize/community/releases)

[Enterprise edition: v1.72.0](https://documize.com/downloads)
[Enterprise edition: v1.73.0](https://documize.com/downloads)

## OS support

Documize runs on the following:
Documize can be installed and run on:

- Linux
- Windows
- macOS

# Browser support
Heck, Documize will probably run just fine on a Raspberry Pi 3.

## Database support

Documize supports the following database systems:

- PostgreSQL (v9.6+)
- MySQL (v5.7.10+ and v8.0.0+)
- Percona (v5.7.16-10+)
- MariaDB (10.3.0+)

Coming soon: Microsoft SQL Server 2017 (Linux/Windows).

## Browser support

Documize supports the following (evergreen) browsers:

- Chrome
- Firefox
- Safari
- Brave
- Vivaldi
- Opera
- MS Edge (16+)

## Technology stack
Expand All @@ -87,14 +102,6 @@ Documize is built with the following technologies:
- EmberJS (v3.1.2)
- Go (v1.10.3)

...and supports the following databases:

- MySQL (v5.7.10+)
- Percona (v5.7.16-10+)
- MariaDB (10.3.0+)

Coming soon, PostgreSQL and Microsoft SQL Server database support.

## Authentication options

Besides email/password login, you can also leverage the following options.
Expand Down
5 changes: 4 additions & 1 deletion build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ copy core\database\templates\*.html embed\bindata

rd /s /q embed\bindata\scripts
mkdir embed\bindata\scripts
mkdir embed\bindata\scripts\mysql
mkdir embed\bindata\scripts\postgresql

echo "Copying database scripts folder"
robocopy /e /NFL /NDL /NJH core\database\scripts\autobuild embed\bindata\scripts
robocopy /e /NFL /NDL /NJH core\database\scripts\mysql embed\bindata\scripts\mysql
robocopy /e /NFL /NDL /NJH core\database\scripts\postgresql embed\bindata\scripts\postgresql

echo "Generating in-memory static assets..."
go get -u github.com/jteeuwen/go-bindata/...
Expand Down
5 changes: 4 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ cp domain/mail/*.html embed/bindata/mail
cp core/database/templates/*.html embed/bindata
rm -rf embed/bindata/scripts
mkdir -p embed/bindata/scripts
cp -r core/database/scripts/autobuild/*.sql embed/bindata/scripts
mkdir -p embed/bindata/scripts/mysql
mkdir -p embed/bindata/scripts/postgresql
cp -r core/database/scripts/mysql/*.sql embed/bindata/scripts/mysql
cp -r core/database/scripts/postgresql/*.sql embed/bindata/scripts/postgresql

echo "Generating in-memory static assets..."
# go get -u github.com/jteeuwen/go-bindata/...
Expand Down
4 changes: 2 additions & 2 deletions core/api/plugins/glick.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/documize/community/core/api/convert/html"
"github.com/documize/community/core/api/convert/md"
api "github.com/documize/community/core/convapi"
"github.com/documize/community/domain"
"github.com/documize/community/domain/store"
"github.com/documize/glick"
)

Expand All @@ -49,7 +49,7 @@ var Lib *glick.Library

// Setup configures the global library at Lib,
// largely based on the "config.json" file. It should be called only once.
func Setup(s *domain.Store) error {
func Setup(s *store.Store) error {
if insecure == "true" {
glick.InsecureSkipVerifyTLS = true
}
Expand Down
Loading

0 comments on commit 4aa3bba

Please sign in to comment.