Welcome to Sundarta, an elegant and user-friendly platform where you can explore and purchase a wide range of beauty products and book rejuvenating wellness services. Indulge yourself in the art of self-care.
Follow these steps to set up the application locally and test it.
Clone the repository to your local machine using Git:
git clone https://github.com/yourusername/sundarta.gitMove into the project directory:
cd sundartaMake sure you have Composer installed. If not, you can install it by following the instructions on the Composer website.
Install all the PHP dependencies:
composer installCopy the .env.example file to .env (if not already present):
cp .env.example .envAlternatively, create a new .env file in the root directory with the following content (replace your_db_username and your_db_password with your own database credentials):
DB_USER=your_db_username
DB_PASS=your_db_password
APP_ENV=development
APP_TIMEZONE=Asia/Kolkata
Make sure MySQL is installed on your system. If you're on Windows, you can use a local MySQL server (like XAMPP or WAMP), and on Linux, you should have MySQL or MariaDB installed.
Create a new database in MySQL:
mysql -u root -p
CREATE DATABASE sundarta_db;Then import the database schema:
mysql -u your_db_username -p sundarta_db < DB.sqlFor testing the application locally, PHP provides a built-in server. Run the following command to start the server on localhost:8000:
php -S localhost:8000You can now access the application in your browser by navigating to http://localhost:8000.
If you prefer using XAMPP or a different local web server instead of PHP's built-in server, follow these steps:
-
Copy your project folder (
sundarta) to thehtdocsfolder of your XAMPP installation (usually located inC:\xampp\htdocsfor Windows or/opt/lampp/htdocsfor Linux). -
Start XAMPP (or your chosen local server).
- On Windows, launch the XAMPP Control Panel and start Apache and MySQL.
- On Linux, start Apache and MySQL via terminal or through the XAMPP manager (
sudo /opt/lampp/lampp start).
-
Set up the
.envfile as described in Step 4. -
Create the database as described in Step 5 (you can use phpMyAdmin on XAMPP to easily create the database if preferred).
-
Access the application by navigating to
http://localhost/sundartain your web browser.
After completing the setup:
- If you're using the PHP built-in server: Open your browser and go to
http://localhost:8000. - If you're using XAMPP or another local server: Open your browser and go to
http://localhost/sundarta(adjust the path based on where you placed your project folder).
- Ensure PHP is installed and available in your system's PATH.
- MySQL/MariaDB can be installed separately or as part of WAMP/XAMPP.
- For simplicity, you can install WAMP or XAMPP, which provides a pre-configured PHP + MySQL environment.
- PHP and MySQL/MariaDB can be installed using your package manager (e.g.,
sudo apt install php mysql-server). - Make sure to install the necessary PHP extensions (such as
pdo_mysql) if they're not installed by default.
This project is licensed under the MIT License.