@prosopo/client-example-server 0.3.36 → 0.3.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +22 -0
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -4,3 +4,25 @@ This example server implements signup, login and authorisation methods for a typ
4
4
  is based
5
5
  on [an article written by Agustin Fernandez](https://www.asapdevelopers.com/build-a-react-native-login-app-with-node-js-backend/)
6
6
  and is adapted to use a Mongo In-Memory Database. This backend server integrates with the client-example React app.
7
+
8
+ ## How to run locally
9
+
10
+ ### 1. Build & Deploy
11
+
12
+ From the roof of this repository, run the following commands:
13
+
14
+ ```bash
15
+ cp demos/client-example-server/env.development demos/client-example-server/.env.development && \
16
+ cp dev/scripts/env.development dev/scripts/.env.development && \
17
+ docker compose --file ./docker/docker-compose.development.yml up -d && \
18
+ npm i && \
19
+ npm run build:all && \
20
+ npm run setup:all && \
21
+ npm run start:server
22
+ ```
23
+
24
+ ### 2. Use the API
25
+
26
+ The server should now be running at localhost:9228. You can customise this in the `.env.development` file. Run this
27
+ example API in conjunction with the [client-example](https://github.com/prosopo/captcha/tree/main/demos/client-example)
28
+ React app.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/client-example-server",
3
- "version": "0.3.36",
3
+ "version": "0.3.37",
4
4
  "description": "Backend for client-example",
5
5
  "main": "dist/app.js",
6
6
  "type": "module",
@@ -38,11 +38,11 @@
38
38
  "@noble/hashes": "^1.3.1",
39
39
  "@polkadot/util": "12.6.2",
40
40
  "@polkadot/util-crypto": "12.6.2",
41
- "@prosopo/api": "0.3.36",
42
- "@prosopo/contract": "0.3.36",
43
- "@prosopo/procaptcha": "0.3.36",
44
- "@prosopo/server": "0.3.36",
45
- "@prosopo/types": "0.3.36",
41
+ "@prosopo/api": "0.3.37",
42
+ "@prosopo/contract": "0.3.37",
43
+ "@prosopo/procaptcha": "0.3.37",
44
+ "@prosopo/server": "0.3.37",
45
+ "@prosopo/types": "0.3.37",
46
46
  "@typegoose/auto-increment": "3.3.0",
47
47
  "cors": "^2.8.5",
48
48
  "jsonwebtoken": "^9.0.0",
@@ -57,6 +57,6 @@
57
57
  "tslib": "2.6.2",
58
58
  "typescript": "5.1.6",
59
59
  "vite": "^5.1.7",
60
- "@prosopo/config": "0.3.36"
60
+ "@prosopo/config": "0.3.37"
61
61
  }
62
62
  }