@prosopo/client-bundle-example 0.2.14 → 0.2.16
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.
- package/README.md +28 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Getting Started with the Client Bundle Example
|
|
2
|
+
|
|
3
|
+
This project is a *minimal* example demonstrating how to include the Prosopo Procaptcha bundle in a client app.
|
|
4
|
+
|
|
5
|
+
## How to run locally
|
|
6
|
+
|
|
7
|
+
### 1. Build & Deploy
|
|
8
|
+
|
|
9
|
+
Run these commands from the root of the [captcha](https://github.com/prosopo/captcha) repo:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
cp demos/client-example-server/env.development demos/client-example-server/.env.development && \
|
|
13
|
+
cp demos/client-example/env.development demos/client-example/.env.development && \
|
|
14
|
+
cp dev/scripts/env.development dev/scripts/.env.development && \
|
|
15
|
+
cp dev/scripts/env.development packages/cli/.env.development && \
|
|
16
|
+
cp dev/scripts/env.development packages/procaptcha-bundle/.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 -w @prosopo/procaptcha-bundle run bundle:dev && \
|
|
22
|
+
npm run start:all
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### 2. Visit the App
|
|
26
|
+
|
|
27
|
+
The app is now running in development mode. Open [http://localhost:9232](http://localhost:9232) to view it in the
|
|
28
|
+
browser.
|