Skip to content

🌐 A full LAMP web system in fedora35 using php8 and mariaDB

License

Notifications You must be signed in to change notification settings

manuelzzz/smarket-web-management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

60 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌐 Smarket

A full LAMP web system for small supermarkets

homepage homepage

Important

This repo correspond with ASDR (Net Service Administration) IT technician matter

Me and @thiagofarias7 developed this project

Getting Started

You need to have installed Apache2, MariaDB and PHP, with mysqli extension, on your machine with the package manager of your distro linux (in this case, we used the Fedora35):

$ sudo dnf install httpd
$ sudo yum install -y mariadb mariadb-server
$ sudo yum install php-cli php-mysqli

For MariaDB and Git, you can found how in these docs:

Maria DB Git

After that, clone this repository

$ git clone https://github.com/manuelzzz/smarket-web-management.git

Before you run the project, configure your MariaDB

First, run:

$ mysql -u root -p

After oppened the MariaDB-server run the SQL Script, it should look like: sqlscript

Then, go to the root of the project and run

$ php -S localhost:8080 lib/index.php

When running with php-cli, go to http://server-ip:8080

To discover the server ip, you do:

$ ifconfig

Note

You can use the /var/www/html/project-name instead php-cli to run the project direct in apache webserver

To access the site, go to http://server-ip/project-name

Contributing

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request