Make sure you have Vagrant and Oracle VM Virtualbox installed on your development machine.
Download & Install
https://www.vagrantup.com/downloads.html
https://www.virtualbox.org/wiki/Downloads
git clone https://github.com/part-up/vagrant-meteor.git
cd vagrant-meteor
vagrant up --provider virtualbox
After the virtaul box installation is completed:
vagrant ssh
Copy and paste in the vagrant machine terminal
cd /vagrant
git clone -b refactor-colon-folders https://github.com/part-up/part-up.git ~/part-up
cp -r ~/part-up /vagrant/
cd part-up/app
rm -rf .meteor
mkdir .meteor/
sudo mount --bind /home/vagrant/part-up/app/.meteor/ /vagrant/part-up/app/.meteor/
echo "sudo mount --bind /home/vagrant/part-up/app/.meteor/ /vagrant/part-up/app/.meteor/" >> ~/.bashrc && source ~/.bashrc
cd /vagrant/part-up/config/development
sudo ./decrypt
Ask Theuy Limpanont
the decryption password. The system will ask the password twice
cd /vagrant/part-up/
./start
As you can see there is a folder part-up
created in the root folder of the project (host machine). The source code of virtual machine box (guest machine) inside /vagrant/part-up
is the same source code as in the root.
The best way to edit the source code is to do it on your host machine, so you can still use your favorite code editor.
Our convention:
Your OS (host machine)
Editing, committing and pushgin the source code
Virtualbox (guest machine)
Start and run the meteor application with mongo server.
You can do vagrant ssh
to login into the guest machine. And do
cd /vagrant/part-up
./start