Welcome to the Ornamental Nursery Project, an online shop for an ornamental plant nursery located in Chile. This project is my first official venture into web development, featuring a dynamic, user-friendly website for a local nursery business.
This project showcases an ornamental plant nursery in Chile, providing an online platform where customers can explore and purchase a variety of ornamental plants. The site is built using PHP for the backend, Vanilla JavaScript for interactivity, SCSS for styling, and Gulp for task automation. The architecture follows the Model-View-Controller (MVC) pattern to ensure a clean and organized codebase.
- User Authentication: Secure login and registration for customers.
- Product Catalog: Browse a wide range of ornamental plants with detailed descriptions and images.
- Shopping Cart: Add plants to a shopping cart and manage the cart before checkout.
- Order Management: Customers can view their order history and track current orders.
- Responsive Design: Optimized for desktop and mobile devices for a seamless user experience.
- Backend: PHP
- Frontend: Vanilla JavaScript
- Styling: SCSS
- Task Runner: Gulp
- Architecture: Model-View-Controller (MVC)
controllers/
- Contains the controllers managing application logic.models/
- Contains the models representing the data and business logic.views/
- Contains the views responsible for displaying the user interface.public/
- Contains publicly accessible files such as CSS, JavaScript, and images.src/scss/
- Source files for SCSS styling.gulpfile.js
- Configuration for Gulp tasks.
To set up the project locally, follow these steps:
-
Clone the Repository:
git clone https://github.com/yourusername/ornamental-nursery-project.git
-
Navigate to the Project Directory:
cd ornamental-nursery-project
-
Install Dependencies:
npm install
-
Compile SCSS and Watch for Changes:
gulp
-
Set Up the Database:
- Create a MySQL database and import the provided SQL file.
- Configure the database connection in the
config.php
file.
-
Start the Development Server:
- Use a local development server (e.g., XAMPP, WAMP, MAMP) to serve the project files.
-
Access the Site:
- Open your web browser and navigate to
http://localhost/ornamental-nursery-project
.
- Open your web browser and navigate to
-
Explore the Features:
- Browse the catalog, add items to your cart, and proceed to checkout.
-
Manage Orders:
- Log in to view your order history and track current orders.
Contributions are welcome! If you have suggestions for improvements or new features, please feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
- Special thanks to the local nursery for their collaboration on this project.
- Thanks to the open-source community for providing the tools and resources that made this project possible.chile