2.1.10 • Published 8 months ago

@prosopo/client-example-server v2.1.10

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

client-example-server

This example server implements signup, login and authorisation methods for a typical node backend application. The code is based on an article written by Agustin Fernandez and is adapted to use a Mongo In-Memory Database. This backend server integrates with the client-example React app.

Quickstart

Test Your Site Key and Secret Key

1. Build & Deploy

From the root of this repository, run the following commands:

cp demos/client-example-server/env.production demos/client-example-server/.env.production && \
npm i && \
npm run start:server

Make sure you replace the following placeholders in the .env.production file with your own site key and secret key. You can obtain these by logging into the Prosopo portal.

PROSOPO_SITE_KEY=<YOUR SITE KEY HERE>
PROSOPO_SITE_PRIVATE_KEY=<YOUR SECRET KEY HERE>

Run this example API in conjunction with the client-example React app.

🚧 Developing the Client Example Server

You can run in development mode to make changes to the client-example-server by following these instructions:

Build & Deploy

From the root of this repository, run the following commands:

cp demos/client-example-server/env.development demos/client-example-server/.env.development && \
cp dev/scripts/env.development dev/scripts/.env.development && \
docker compose --file ./docker/docker-compose.development.yml up -d && \
npm i && \
npm run build:all && \
npm run setup:all && \
npm run start:server

Use the API

The server should now be running at localhost:9228. You can customise this in the .env.development file. Run this example API in conjunction with the client-example React app.

2.1.9

8 months ago

2.1.10

8 months ago

2.1.8

8 months ago

2.1.7

8 months ago

2.1.6

8 months ago

2.1.5

8 months ago

2.1.2

9 months ago

2.1.1

9 months ago

2.1.4

8 months ago

2.1.3

8 months ago

2.1.0

9 months ago

2.0.3

10 months ago

2.0.2

10 months ago

1.0.2

1 year ago

1.0.1

1 year ago

2.0.1

10 months ago

2.0.0

10 months ago

0.3.42

1 year ago

0.3.41

1 year ago

0.3.40

1 year ago

0.3.39

1 year ago

0.3.38

1 year ago

0.3.37

1 year ago

0.3.36

1 year ago

0.3.5

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.2.41

1 year ago

0.2.40

1 year ago

0.2.39

1 year ago

0.2.38

1 year ago

0.2.37

1 year ago

0.2.36

1 year ago

0.2.33

1 year ago

0.2.32

1 year ago

0.2.29

1 year ago

0.2.25

1 year ago

0.2.24

1 year ago

0.2.23

1 year ago

0.2.22

1 year ago

0.2.21

1 year ago

0.2.20

1 year ago

0.2.19

1 year ago

0.2.17

2 years ago

0.2.16

2 years ago

0.2.15

2 years ago

0.2.14

2 years ago

0.2.13

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.19

2 years ago

0.1.18

2 years ago

0.1.17

2 years ago