A simple meteor application demo
View live demo on https://micropost.view-this.info
meteor test --driver-package practicalmeteor:mocha
- Dependencies: node, meteor
- Install the packages
npm install
- Run the meteor application
meteor
- Dependencies: node, meteor, mongo
- Build the meteor application. This will output a file named micropost.tar.gz. You may change the output path.
meteor build --architecture=os.linux.x86_64 .
- Extract the output file micropost.tar.gz. It will extract a directory called bundle
tar -zxvf micropost.tar.gz
- Go to the bundle's server directory
cd /bundle/programs/server
- Install the packages
npm install
- Setup Environment variables for meteor. Check Meteor Docs
MONGO_URL='mongodb://<mongo_host>/<app>'
ROOT_URL='http://localhost'
PORT='80'
...
- Run the application
node /bundle/main.js
- Dependencies: node, meteor, docker
- Build the meteor application. This will output a file named micropost.tar.gz
meteor build --architecture=os.linux.x86_64 .
- Extract the output file micropost.tar.gz. It will extract a directory called bundle
tar -zxvf micropost.tar.gz
- Update docker-compose.yml with the your volume paths and environment variables.
- Run the container
docker-compose up