NodeJS express API for handling biological sequences
660
NodeJS express API for handling biological sequences analyses
Dependencies
Assuming we define /seqservice as basepath, and we keep 10030 port in config.json
# Reverse proxy seqservice
RewriteEngine On
RewriteRule ^/seqservice/(.*)$ http://localhost:10030/seqservice/$1 [P]
ProxyPass /seqservice/socket.io http://localhost:10030/seqservice/socket.io
ProxyPassReverse /seqservice/socket.io http://localhost:10030/seqservice/socket.io
Check example nginx.conf file
Info about WebSocket and NGINX: https://www.nginx.com/blog/websocket-nginx/
From the directory of the application
npm install
npm run build
NODE_ENV=production node index.js config.json
FUN!
From this repository:
docker build -t seqservice .
docker run -p 10030:10030 -v /path/to/db:/data/db/seqservice -v /path/to/config.json:/data/soft/config.json -d seqservice
Open your browser at http://localhost:10030/seqservice/
In any case, adapt database and config.json path and contents to fit your needs
Content type
Image
Digest
Size
683.3 MB
Last updated
about 7 years ago
docker pull toniher/seqservice