A markdown document editor
Create an env file from the example
cp .env.example .envStart the server
docker-composer up -dStart electron application
electron .requires electron installed globally with
npm i -g electron
Going to try to stick to prefixing with
serverandelectronto specify which part the env is for.
ENV for conditions within both server and electron that might need differences between environments
ENV=development
Nginx host name
NGINX_HOST=test.local
Keymetrics account credentials [optional]
This is more for deployment and server monitoring etc
KEYMETRICS_PUBLIC=
KEYMETRICS_SECRET=
See Keymetrics for more.
PM2 server configurations and express hosting port
SERVER_EXPRESS_PORT=3000
SERVER_INSTANCES=1
SERVER_WATCH=true
Instances is used to managed your cluster processes http://pm2.keymetrics.io/docs/usage/cluster-mode/
Secret used for JWT authentication
#JWT secret
SERVER_JWT_SECRET=thisissoooosecret
Mongo DB host and port
SERVER_MONGO_HOST=db
SERVER_MONGO_PORT=27017
GraphQL pretty print
#GraphQL pretty
SERVER_PRETTY_QL=true
Auth0 credentials
#Auth0 Credentials
SERVER_AUTH0_DOMAIN=
SERVER_AUTH0_CLIENTID=
SERVER_AUTH0_SECRET=
Accessing the pm2 docker (there's no bash here)
alias dn="docker exec -it $(docker ps -f 'name='node-cli'' -q) "You can use the above to access pm2 commands like so dn pm2 logs