/shoplist

đź›’ Material-themed shopping list web application made with HTML, CSS, JS and PHP

Primary LanguagePHPMIT LicenseMIT

Shopping List

Material themed shopping list.
Made with HTML, CSS, JS, PHP and with ❤️

Introduction

This project's purpose is to make an online shopping list with open-source code.
This is my first project so I appreciate any help or commit.

Live preview

Try the project

Getting Started

To make your own Shopping List you need a Web Server (you can use XAMPP for local).

Settings.php example

<?php
//TURN ERROR_REPORTING OFF
error_reporting(0);

//MYSQLI connection
$conn = new mysqli("HOST", "USER", "PASSWORD", "DATABASE");
//Make sure website works properly
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
} 

//Language set
$lang = 'en';

//SALT for more security
$salt = 'YOUR VERY UNIQUE CODE';
?>

Installing

  1. Download the project
  2. Copy it to your webserver.
  3. Change $conn = new mysqli("SERVER", "USERNAME", "PW", "DB"); in settings.php
    • SERVER to your MySQL server's address (usually localhost)
    • USERNAME to your MySQL username
    • PW to your MySQL password
    • DB to the name of the MySQL database
  4. Change the $salt to something unique (for example encrypt a word and set it as salt)
  5. Import the IMPORT.sql file to your MySQL server
  6. Profit!

Test if it works

To make sure your website works correctly go to YOURWEBSITE.com/list.
If you don't get a plain text with MySQL warnings, then you set your Shopping List webserver up correctly.

Built With

Contributing

If you want to contribute just make a pull request and I will test it and if it works i will accept it.

Authors

See also the list of contributors who participated in this project.

In motion

License

This project is licensed under the MIT License - see the LICENSE file for details