Socket
Socket
Sign inDemoInstall

@prosopo/client-example-server

Package Overview
Dependencies
13
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @prosopo/client-example-server

Backend for client-example


Version published
Weekly downloads
115
increased by64.29%
Maintainers
3
Created
Weekly downloads
 

Readme

Source

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.

How to run locally

1. Build & Deploy

From the roof 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

2. 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.

FAQs

Last updated on 24 Apr 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc