Skip to content

dgcgovkh/document-encryption-server

Repository files navigation

How to Install

Using Docker

Pull the latest docker image

docker pull ghcr.io/dgcgovkh/document-encryption-server:latest

Run the docker container

docker run -d -p 8080:80 --restart unless-stopped -v ./<server-config-file>:/app/server-config.json ghcr.io/dgcgovkh/document-encryption-server:latest

Non-Docker

Requirements:

# Clone and install dependencies
git clone https://github.com/dgcgovkh/document-encryption-server.git
cd document-encryption-server
npm install

Create an .env file (optinal)

# Add env variable name PORT to .env file (default port is 80)
echo "PORT=8080" >> .env
# Option 1. Try it
node server.js

# (Recommended) Option 2. Run in the background using PM2
pm2 start server.js --name document-encryption

Document-encryption is now running on http://localhost:8080

More useful PM2 Commands

# If you want to see the current console output
pm2 monit

# If you want to add it to startup
pm2 save && pm2 startup

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages