Skip to content

Commit

Permalink
Added all dependencies to package.json (#11)
Browse files Browse the repository at this point in the history
It seems to be a better practice to keep all dependencies documented in repo and package-lock, so there will be no issues with installing them manually. Even though there are more deps that self-hosters might not use, it makes it easier to change configuration and manage some things like docker images (see #8).
  • Loading branch information
zneix committed Sep 30, 2020
1 parent 7808ccf commit 8ad9278
Show file tree
Hide file tree
Showing 3 changed files with 302 additions and 19 deletions.
18 changes: 0 additions & 18 deletions docs/storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ Not rewritten yet, to be filled in

## MongoDB

Requires npm package (Tested on v3.6.0):

```bash
npm i mongodb
```

Stores documents in a specified database in a collection named `entries`.
Expiration property in config can be changed to a value in seconds after which entries will not be served.

Expand Down Expand Up @@ -87,12 +81,6 @@ Check [documentation](https://mongodb.github.io/node-mongodb-native/3.5/api/Mong

## Postgres

Requires npm package (Tested on v8.3.3):

```bash
npm install pg
```

You will have to create the database and add a table named `entries`. It can be easily done with the following query:

`CREATE TABLE entries (id SERIAL PRIMARY KEY, key VARCHAR(255) NOT NULL, value TEXT NOT NULL, expiration INT, UNIQUE(key));`
Expand All @@ -116,12 +104,6 @@ Expiration property in config can be changed to a value in seconds after which e

## Redis

Requires npm package (Tested on v4.17.3):

```bash
npm install ioredis
```

Stores documents in a specified redis database.
Expiration property in config can be changed to a value in seconds after which entries will not be served.

Expand Down
Loading

0 comments on commit 8ad9278

Please sign in to comment.