all repos — litestore @ 2eabe898452b3b6d8860814957b81e5b4faf2979

A minimalist nosql document store.

Fixed compilation errors (#54, #55).
h3rald h3rald@h3rald.com
Sun, 29 Nov 2020 14:28:35 +0000
commit

2eabe898452b3b6d8860814957b81e5b4faf2979

parent

edbb64dd35921a1a0e4caf242bb70a0bc3f1fc5d

4 files changed, 4 insertions(+), 12 deletions(-)

jump to
M .travis.yml.travis.yml

@@ -4,7 +4,7 @@ directories:

- "$HOME/.nimble" - "$HOME/.choosenim" install: - - export CHOOSENIM_CHOOSE_VERSION="1.0.0" + - export CHOOSENIM_CHOOSE_VERSION="stable" - | curl https://nim-lang.org/choosenim/init.sh -sSf > init.sh sh init.sh -y
M litestore.nimblelitestore.nimble

@@ -25,7 +25,7 @@ installExt = @["nim", "c", "h", "json", "ico"]

# Dependencies -requires "nim >= 1.4.0", "jwt", "nimgen", "duktape" +requires "nim >= 1.4.0", "jwt >= 0.2", "nimgen", "duktape" # Build
M src/admin/md/getting-started.mdsrc/admin/md/getting-started.md

@@ -15,14 +15,6 @@ If you already have [Nim](http://nim-lang.org/) installed on your computer, you can simply run

[nimble install litestore](class:cmd) -### Building from Source - -You can also build LiteStore from source, if there is no pre-built binary for your platform. All you have to do is the following: - -1. Download and install [Nim](http://nim-lang.org/). -2. Clone the LiteStore [repository](https://github.com/h3rald/litestore). -4. Run [nim c litestore.nim](class:cmd) within the respository folder. - ### Running the Administration App A simple but functional Administration App is available to manage LiteStore, create documents interactively, view and search content, etc.

@@ -32,4 +24,4 @@

1. Extract the default **data.db** file included in the LiteStore release package. This file is a LiteStore data store file containing the sample app. 2. Go to the local directory in which you downloaded the [data.db](class:cmd) file. 3. Run [litestore -s:data.db](class:cmd) -4. Go to [localhost:9500/docs/admin/index.html](http://localhost:9500/docs/admin/index.html).+4. Go to [localhost:9500/docs/admin/index.html](http://localhost:9500/docs/admin/index.html).
M src/litestorepkg/lib/server.nimsrc/litestorepkg/lib/server.nim

@@ -63,7 +63,7 @@ try:

jwt = token.toJwt() let parts = token.split(".") var sig = LS.auth["signature"].getStr - discard verifySignature(parts[0] & "." & parts[1], decodeUrlSafe(parts[2]), sig) + discard verifySignature(parts[0] & "." & parts[1], decodeUrlSafe(parts[2]), sig, RS256) verifyTimeClaims(jwt) let scopes = cfg[reqMethod] # Validate scope