Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.66 KB

README.md

File metadata and controls

55 lines (39 loc) · 1.66 KB

uSocial

The uPort Social Module

Build Status
[Master] https://uport-social.herokuapp.com

Build Status
[Development] https://uport-social-dev.herokuapp.com

Getting started

npm install
npm start

Production

export NODE_ENV=production
export PORT=3000
export API_PORT=3001
export REACT_APP_CLIENT=http://localhost:3000
export REACT_APP_API=http://localhost:3001
npm run build
npm run serve

Environment variables

  • NODE_ENV: production or development
  • REACT_APP_CLIENT: Client base URL (i.e. http://localhost:3000)
  • REACT_APP_API: API base URL (i.e. http://localhost:3001). When not set, the client will default to http://localhost:3001 and API will automatically initialize a new ngrok instance on boot to handle uPort callbacks.
  • PORT: Client port to listen to (i.e. 3000). For the client, PORT > 3000
  • API_PORT: API port to listen to (i.e. 3001. For the API, API_PORT > PORT > 3001
  • UPORT_PRIVATE_KEY: uPort signing key. Can be generated through const { did, privateKey } = Credentials.createIdentity() or uPort My Appps

Client is only aware of environment variables starting with REACT_APP_.

Environment variables can also be set through .env files, see .env.example in packages/<name>/.

Thanks

License

MIT © Gerard Rovira Sánchez