A meteor application that makes URL longer.
meteor test --driver-package practicalmeteor:mocha
- Dependencies: node, meteor
- Install the packages
npm install
- Run the meteor application
meteor --settings settings-dev.json
- Dependencies: node, meteor, mongo
- Build the meteor application. This will output a file named urlongr.tar.gz. You may change the output path.
meteor build --architecture=os.linux.x86_64 .
- Extract the output file urlongr.tar.gz. It will extract a directory called bundle
tar -zxvf urlongr.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
METEOR_SETTINGS='{"DEFAULT_URL_LENGTH": 4000,"DEFAULT_DOMAIN": "test.urlongr.com"}'
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 urlongr.tar.gz
meteor build --architecture=os.linux.x86_64 .
- Extract the output file urlongr.tar.gz. It will extract a directory called bundle
tar -zxvf urlongr.tar.gz
- Update docker-compose.yml with the your volume paths and environment variables.
- Run the container
docker-compose up