This guide assumes you are using XAMPP or WAMPP for your local development environment.
- Copy the project folder
cpsinto your web server's root directory:- XAMPP:
C:\xampp\htdocs\ - WAMPP:
C:\wamp64\www\
- XAMPP:
- Open your XAMPP/WAMPP Control Panel.
- Start Apache and MySQL modules.
- Open your browser and go to
http://localhost/phpmyadmin. - Click New to create a new database.
- Name the database
CPSand click Create. - Select the
CPSdatabase from the sidebar. - Click the Import tab.
- Choose the file
database/cps.sqlfrom the project folder. - Click Go to import the tables.
- Go to the project folder (
htdocs/cpsorwww/cps). - Copy the file
.env.exampleand rename it to.env. - Open
.envwith a text editor (Notepad, VS Code, etc.). - Update the settings as follows (default for XAMPP/WAMPP):
# Database Configuration
DB_HOST=localhost
DB_USERNAME=root
DB_PASSWORD=
DB_NAME=CPS
# Gmail SMTP Configuration (Required for OTPs)
# 1. Go to https://myaccount.google.com/apppasswords
# 2. Generate a new App Password for "Mail"
SMTP_USERNAME=your_email@gmail.com
SMTP_PASSWORD=your_16_digit_app_password
SMTP_FROM_EMAIL=your_email@gmail.com- User Portal: Open
http://localhost/cps - User Portal: Open
http://localhost/cps