
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@prosopo/client-example-server
Advanced tools
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.
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.
You can run in development mode to make changes to the client-example-server by following these instructions:
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
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.
FAQs
Backend for client-example
The npm package @prosopo/client-example-server receives a total of 6 weekly downloads. As such, @prosopo/client-example-server popularity was classified as not popular.
We found that @prosopo/client-example-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.