Yolo E-commerce Orchestration is an application designed to add products and display them, allowing users to place orders. My main role in this project was to orchestrate the deployment using Vagrant and Ansible.
Install Vagrant , VirtualBox ,ansible and terraform
there are two ways to run this application use terraform or without terraform
- Clone the repository:
git clone https://github.com/rashidjosphat/ip3/
- go to the cloned directory
cd ip3 - first you need to run the virtual machine by
vagrant up
- after that you can the application up by running
ansible-playbook ./ansible/playbook.yml --ask-became-pass
if it promt you a password put
to run this application with terraform you simply branch to the stage_two branch and cd into the stage_two directory. in the stage_two directory run
terraform plan -out=tfplan && terraform apply -auto-approve tfplan
the command is supporsed to initiate by downloading the stated providers in the terraform main.tf file and run the application automatically.
The terraform file is coded in way that it provision the same os in option one and it and it also run the ansible file , so no need for any other command it come packed with all configuration.
go to you browser and run
http://localhost:3000Contributions are welcome! Please fork the repository and submit a pull request with your changes.
For questions or support, please reach out to [josphat.rashid@student.moringaschool.com].