Giter VIP home page Giter VIP logo

zahed_dev_s_26_g's Introduction

Demo

you can visist the online sample of this app in this url

https://shopping.sinazahed.bio/list

Overview

This project is a shopping list application developed with pure PHP 8 and MySQL 8.

It utilizes a custom microframework built with Object-Oriented Programming (OOP) principles.

The framework incorporates a routing system and follows the Model-View-Controller (MVC) pattern.

Notably, it features a database driver abstraction to ensure flexibility; thus, facilitating the swapping of databases without major code alterations (dependency inversion principle).

And also RESTful API Provides access to application functionalities via API endpoints.

Screenshot 1403-02-13 at 17 14 35

Technologies Used

  • PHP 8: Core language used for server-side scripting.

  • MySQL 8: Database management system utilized for data storage.

  • JavaScript (Vanilla): Employed for client-side (Ajax)interactions.

  • Bootstrap: Utilized for frontend styling and layout.

  • PHPUnit: Used for feature testing of the RESTful API.

  • Docker: The application has been containerized for simplified deployment. (nginx , phpmyadmin , mysql , php)

Usage/Examples

  • Clone the repository to your local machine.

  • Intall Docker

Run the Docker container using the provided Dockerfile.

docker compose up -d
composer install

Database

you can download and import the database from this url https://shopping.sinazahed.bio/list.sql or run the create table command directly in mysql

CREATE TABLE `list` (
  `id` int UNSIGNED NOT NULL,
  `title` varchar(70) NOT NULL,
  `checked` tinyint NOT NULL DEFAULT '0',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

now you can access the website with address http://localhost/list

you can customize and config .env file based on your enviroment

Run tests

    ./vendor/bin/phpunit

zahed_dev_s_26_g's People

Contributors

sinazahed avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.