npm.io
1.0.0 • Published 3 years ago

services-audyx

Licence
ISC
Version
1.0.0
Deps
8
Size
65 kB
Vulns
0
Weekly
0

Attention!

If you send patient data in the socket, please be sure that it doesn't be saved anywhere. (logs, console logs, etc.)

Install

npm install

or

yarn

install services DB

  • create locla DB
sudo -u $USER createdb servicesdb
  • set password for your user on psql
psql -d servicesdb -U $USER
\password
{write your user name}
\q

notice: your password needs to be as your user name for example: if $USER = john, you will put john for your password


Run

npm start

Run locally

Copy your Audyx certificates to the services folder before running

Services

npm run dev

This will run a https proxy server on port 5000

see remote wiki for the remote settings

Audyx

  • .env:
    change the SERVICES_AUDYX_URL to local.koalys.com:5001

Structure

server.js: Runs the express server

socket.js: Handles socket.io

db/migrations: all database migrations

models: all models files