This is a service booking web application built using Angular for the frontend and PHP (via Express-style API) for the backend. The application allows users to browse and book various home services while the admin manages service listings through the backend.
homeservices/– Angular frontend projectapi_homeservices/– PHP backend APIs (placed in XAMPP'shtdocs)homeservices.sql– MySQL database file
Ensure the following tools are installed on your system:
- Angular CLI
- Node.js & npm
- Express (via npm)
- XAMPP (Apache + MySQL)
- VS Code (or any modern code editor)
- Put the
homeservices/folder anywhere on your system (e.g.,Documents/Projects/). - Copy the
api_homeservices/folder into thehtdocsdirectory of your XAMPP installation.
- Start XAMPP and launch phpMyAdmin.
- Create a new database (e.g.,
homeservices_db). - Import the
homeservices.sqlfile into the newly created database.
- Open both folders (
homeservices/andapi_homeservices/) in VS Code. - Make sure Apache and MySQL are running in XAMPP.
-
Navigate to the
homeservices/directory in terminal:cd homeservices -
Install dependencies:
npm install
-
Run the project:
ng serve
-
Open your browser and visit:
http://localhost:4200
- Ensure your PHP APIs are accessible via:
http://localhost/api_homeservices/
- Open any file inside the
src/folder of the Angular project (e.g.,app.component.ts). - Make sure the frontend is running with
ng serve. - Keep your XAMPP server active while testing the API connection.
- Update API endpoint URLs in Angular files if needed (
localhostor127.0.0.1). - Ensure CORS is handled correctly between frontend and backend (if needed).
- Default port for Angular is
4200; change if it conflicts.