Skip to content

Deployment

Tony Boyles edited this page May 16, 2018 · 2 revisions

Please note that this page is for developers and system administrators, and likely does not contain any information relevant to users of MicrobeTrace.

MicrobeTrace is designed to be an easy-to-deploy, client-side application. However, most of MicrobeTrace's dependencies are served directly out of its node_modules directory, so you'll need to populate that in order to generate a working deployment.

# 1. Clone MicrobeTrace

git clone https://github.com/AABoyles/WebMicrobeTrace.git && cd WebMicrobeTrace

# 2. Download Dependencies

npm install

If npm returned successfully, then MicrobeTrace is ready to be served. If you already have a fileserver set up, you need only copy (or link) the MicrobeTrace files to the server's directory. If you don't, you can launch MicrobeTrace's barebones server like so:

npm start

You should now be able to access your MicrobeTrace instance by visiting http://localhost:5000/

Deploying to S3

Deploying to S3 is a pain in the neck if you don't have the AWSCLI installed, so do us all a favor and get that set up first. Also, create a bucket from which to serve the files. Then, from the MicrobeTrace directory,

aws s3 cp s3://<your-bucket>/ * -R

As soon as the upload is complete, your MicrobeTrace instance should be available at http://<your-bucket>.s3-website-<AWS-region>.amazonaws.com

Clone this wiki locally