Skip to content

Commit bd89e32

Browse files
authoredJul 21, 2020
Kuzzle as a framework (#1641)
This PR introduce a new way to develop application with Kuzzle. You can now develop an application in the same way you do with express-like framework instead of developing a business plugin injected in the core from the filesystem. This is the first step, I will introduce new base class for plugin development in a subsequent PR. Everything is backward compatible with the old plugin API (loading from the filesystem). The kuzzle package now expose a Backend class. You can instantiate this class and define features before starting your kuzzle application. This class has been written in Typescript to improve Developer Experience (DX). Internally the Backend class is just a wrapper to create a Plugin (like any other plugin). The main difference is that plugin has the application flag. Kuzzle ensure that only one application plugin can be loaded.
1 parent 808acf5 commit bd89e32

File tree

150 files changed

+4425
-2440
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+4425
-2440
lines changed
 

‎.ci/scripts/run-test-arm.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ export NVM_DIR="$HOME/.nvm"
1414
. "$NVM_DIR/nvm.sh"
1515
nvm use $NODE_VERSION
1616

17-
node bin/start-kuzzle-server --enable-plugins functional-test-plugin &
17+
npm run build
18+
19+
node -r ts-node/register features-sdk/application/functional-tests-app.ts &
1820

1921
echo "[$(date)] - Starting Kuzzle..."
2022

2123
./bin/wait-kuzzle
2224

23-
npm run test:functional
25+
npm run $KUZZLE_FUNCTIONAL_TESTS

‎.ci/scripts/run-test.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ n $NODE_VERSION
1313

1414
npm install --silent --unsafe-perm
1515

16+
npm run build
17+
1618
./docker/scripts/install-plugins.sh
1719

1820
echo "[$(date)] - Starting Kuzzle..."
1921

20-
node bin/start-kuzzle-server --enable-plugins functional-test-plugin &
22+
node -r ts-node/register features-sdk/application/functional-tests-app.ts &
2123

2224
./bin/wait-kuzzle
2325

0 commit comments

Comments
 (0)
Please sign in to comment.