Skip to content

uprtcl/js-uprtcl-server

Repository files navigation

Webserver Service Provider for js-uprtcl

Local Development

  • Run dgraph using

    sudo docker run --rm -it -p 8080:8080 -p 9080:9080 -p 8000:8000 -v ~/dgraph:/dgraph dgraph/standalone:v20.03.3
    
  • Create a .env file in the root folder with the content:

    JWT_SECRET=123456
    PROTOCOL=http
    HOST=localhost:3100
    DGRAPH_HOST=localhost
    DGRAPH_PORT=9080
    AUTH0_DOMAIN=linked-thoughts-dev.eu.auth0.com
    PUBKEY_FILE=auth0.pem
    ONLY_VALID_USERS=false
    
    

    Install packages

    npm i
    

    Test

    npm run test
    
  • Run in debug mode.

    npm run dev