![Logo](/theakhinabraham/grocer-grocery-store-manager/raw/main/img/logo.png)
💡 Web app using PHP, MySQL, JavaScript, HTML & CSS for Grocery Store Owners to manage products and employees.
Explore the Documentations»
Report Bugs
·
Request Features
Table of Contents
Grocer is a web app that makes it easier for Grocery Store owners to focus on their business growth rather than wasting time on management. It is built using HTML, CSS, JavaScript, PHP, MySQL, Xampp & Apache. The best UI you will see for a management system web app, Grocery is your key to:
- Simplified in-store inventory management: Grocer offers a user-friendly interface for store owners to easily add, remove, and edit product details like name, price, quantity, and quality. This eliminates the need for manual record-keeping and streamlines stock management.
- Improved data accuracy and organization: By centralizing product information in a digital platform, Grocer minimizes errors and ensures consistent, accessible data for informed decision-making.
- Enhanced employee management: Streamlining employee data management with add/remove functionality simplifies administrative tasks and helps maintain accurate personnel records.
- Cost-effective solution: Grocer requires no initial hardware investment and relies on web-based access, making it a more affordable option compared to traditional inventory management systems.
Key features of Grocer:
- Inventory Management: Add, remove, edit product details (name, quantity, price, quality).
- Employee Management: Add, remove, edit employee data.
- Product Overview: View comprehensive list of all available products with key details.
- Customer Management: View all data of customers
PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
Make sure you have git
installed, type git --version
in your cmd. (git official download page: https://git-scm.com/downloads)
git --version
Also, install xampp
to run the project on localhost. (xampp download link: https://www.apachefriends.org)
Installation process: https://www.ionos.com/digitalguide/server/tools/xampp-tutorial-create-your-own-local-test-server/
Steps to install code into your local device and run using localhost:
- Fork this repository (and leave a star if you like) by click on the
fork
button on the top right side. - From your copy of this repo located
grocer-grocery-store-manager
, copy the code link:https://github.com/your-user-name/grocer-grocery-store-manager.git
- Locate to:
C://xampp/htdocs/
- Open terminal and locate to
htdocs
cd C://xampp/htdocs
- Clone your copy of this repo using
git clone link-you-copied-in-step-2
git clone https://github.com/your_username_/doable-todo-list-app.git
- Rename
grocer-grocery-store-manager
folder tomyFolder
- Open the folder
myFolder
in your code editor (I use VS Code) & start coding. - Download PHP Extensions in VS Code
- Run Apache and MySQL in Xampp
- Go to Chrome Browser and go to
http://localhost/myFolder/
to run the program - Create a database named
grocer
with 3 tables inhttp://localhost/phpmyadmin/
- Create a table named
product
and add 4 columnsPid
Pname
Pprice
Pstock
- Create a table named
customer
and add 4 columnsCid
Cname
Caddress
Cphone
- Create a table named
employee
and add 5 columnsEid
Ename
Esalary
Eaddress
Ephone
(If not working: do check PORT number issues in Xampp)
username: cust password: 123
username: owner password: 123
For more examples, please refer to the Documentation_
- Create Login page
- Create Register page
- Store login credentials in MySQL Database
- While registering, set username and password (instead of manual entering/hardcoding)
- Create Main page
- Add, edit and delete product and its details. Store it in MySQL Table.
- Display product list and its details by retrieving data from MySQL table.
- Add or remove employee. Update MySQL table.
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!
- Fork this repository (and leave a star if you like) by click on the
fork
button on the top right side. - From your copy of this repo located
grocer-grocery-store-manager
, copy the code link:https://github.com/your-user-name/grocer-grocery-store-manager.git
- Locate to:
C://xampp/htdocs/
- Open terminal and locate to
htdocs
cd C://xampp/htdocs
- Clone your copy of this repo using
git clone link-you-copied-in-step-2
git clone https://github.com/your_username_/doable-todo-list-app.git
-
Rename
grocer-grocery-store-manager
folder tomyFolder
-
Open the folder
myFolder
in your code editor (I use VS Code) & start coding. -
Download PHP Extensions in VS Code
-
Run Apache and MySQL in Xampp
-
Go to Chrome Browser and go to
http://localhost/myFolder/
to run the program -
Create a database named
grocer
with 3 tables inhttp://localhost/phpmyadmin/
-
Create a table named
product
and add 4 columnsPid
Pname
Pprice
Pstock
-
Create a table named
customer
and add 4 columnsCid
Cname
Caddress
Cphone
-
Create a table named
employee
and add 5 columnsEid
Ename
Esalary
Eaddress
Ephone
-
Navigate to the root folder of this project
cd C://xampp/htdocs/myFolder
- DO NOT MAKE CHANGES TO THE main BRANCH, create your own branch and name it your name
git branch my-user-name
- Confirm that your new branch
my-user-name
is created
git branch
- Select your new branch
my-user-name
and work on that branch only
git checkout my-user-name
- Confirm that you are in your branch
my-user-name
and NOT onmain
git branch
- You have to shift to
main
branch first but do NOTpush
tomain
branch
git checkout main
- Perform a
pull
to stay updated. It must showAlready up-to-date
git pull
- Now you have to shift back to your branch
my-user-name
again before you can continue editing code
git checkout my-user-name
- Perform a
pull
again inmy-user-name
your own branch
git pull
- Confirm you are in
my-user-name
your own branch
git branch
- Push the changes
git add .
git commit -m "issue #24 fixed"
- Choose
git push origin HEAD
, do NOT choosegit push origin HEAD:master
git push
git push origin HEAD
Distributed under the MIT License. Click LICENSE.md for more information.
Akhin Abraham - twitter.com/theakhin - [email protected]
Repository Link: https://github.com/theakhinabraham/grocer-grocery-store-manager
Here are some resource links to help with this project and it's contribution: