- Clone the project repository to your local machine using Git:
git clone https://github.com/xsunzukz/cst-project-sem-6.git
Step 1: Enable Hyper-V and WSL (Windows Subsystem for Linux)
- Open the search bar and type "Turn Windows features on and off".
- Check the boxes next to "Hyper-V" and "WSL" or "Windows Subsystem for Linux".
- Restart your computer to apply the changes.
Step 2: Download and Install Docker Desktop
- Go to Download Docker Desktop.
- Create an account if you don't have one already.
- Download the Docker Desktop installer.
- Run the installer with administrator privileges.
- During installation, make sure to select the option to use WSL instead of Hyper-V (if prompted).
- Wait for the installation to complete, which may take some time.
- After installing Docker Desktop, restart your computer.
Run this script: move-docker-data.bat
Before Starting:
- Ensure that XAMPP is closed and not running.
- Download the project files from the provided link and create a new folder to paste them.
- Confirm that you are not inside the website folder and can see both the
docker-compose.yml
file and theDockerfile
. - Make sure Docker is installed and running on your system.
Installation Steps:
- Open CMD and navigate to the folder where you've placed the project files.
- Run the command
docker-compose up
- This command will download all the necessary files and start the container.
- Access phpMyAdmin by visiting
localhost:8001
in your web browser. - Initially, use "admin" for both the ID and password. If it doesn't work, keep trying and monitor the console.
- After a while, you'll see a message in the console indicating that the
bgp_database
has been created. - Once the database restarts, you'll be able to access phpMyAdmin properly.
- Go to the
bgp_database
and import the SQL file provided. - Visit
localhost:80
in your browser to access the project. - For future use, simply open Docker Desktop and run the containers. Everything should work seamlessly.
These steps ensure a smooth transition from XAMPP to Docker, providing a more reliable and scalable environment for your project.