๐Ÿš€ Setting Up VProfile Project: A Quick Guide ๐Ÿš€

prathu Dwivediprathu Dwivedi
2 min read

Prerequisites:

  1. Oracle VM VirtualBox

  2. Vagrant

  3. Vagrant Plugins ($ vagrant plugin install vagrant-hostmanager)

  4. Git Bash or equivalent

VM Setup:

  1. Clone the repository:

     shCopy code$ git clone https://github.com/hkhcoder/vprofile-project.git
    
  2. Navigate to the project directory:

     shCopy code$ cd vprofile-project
     $ git checkout main
     $ cd vagrant/Manual_provisioning
    
  3. Bring up the VMs:

     shCopy code$ vagrant up
    

Provisioning Services:

  1. MySQL - Database Service

  2. Memcache - DB Caching Service

  3. RabbitMQ - Broker/Queue Service

  4. Tomcat - Application Service

  5. Nginx - Web Service

MySQL Setup:

  1. Login to the DB VM:

     shCopy code$ vagrant ssh db01
    
  2. Update OS and install MariaDB:

     shCopy code# yum update -y
     # yum install epel-release -y
     # yum install git mariadb-server -y
    
  3. Start and enable MariaDB:

     shCopy code# systemctl start mariadb
     # systemctl enable mariadb
    
  4. Run MySQL secure installation:

     shCopy code# mysql_secure_installation
    
  5. Set up the database and user:

     shCopy code# mysql -u root -padmin123
     mysql> create database accounts;
     mysql> grant all privileges on accounts.* TO 'admin'@'%' identified by 'admin123';
     mysql> FLUSH PRIVILEGES;
     mysql> exit;
    
  6. Initialize the database:

     shCopy code# git clone -b main https://github.com/hkhcoder/vprofile-project.git
     # cd vprofile-project
     # mysql -u root -padmin123 accounts < src/main/resources/db_backup.sql
    

#vProfile #VMSetup #DevOps #Automation #MySQL #Nginx #Tomcat #RabbitMQ #Memcache


0
Subscribe to my newsletter

Read articles from prathu Dwivedi directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

prathu Dwivedi
prathu Dwivedi