GithubHelp home page GithubHelp logo

foodsite's Introduction

Food Delivery Site

I orginally created this out of boredom as I've always used HTML/PHP for small scale websites but nothing overly big. I wanted to expand upon Food App as Food App was only ever a prototype made to show someone I previously worked with that I could build them an app. However with a change of job the app became abandoned due to lack of personal time. This is far from finished and only really has basic login avaliable, but it might be a good start for someone who wants to make a website. Admittingly alot of the PHP stuff could have been done better which is why I started a whole new project from the ground up. Not saying this isn't usable in anyway but lacks a little orginisation.


Features:

  • MySQL databases for storing user info
  • mailtrap.io for testing emails
  • Email verifcation
  • Forgotten password
  • Register account
  • Full login
  • JWT for security
  • Sessions and cookies
  • Basic index page with header and sidebar
  • News tab with news page which grabs news from the MySQL database

Media:

Login:

image

Register:

image

Forgot Password:

image

Email Verifcation:

image

Dashboard:

image

News Tab:

image


Please excuse the layout and design of the pages, I'm not very strong when it comes to frontend or any type of artist design. But should be more than enough for someone to use as a base and build off from


Config.php:

You'll need to change a few things in config.php like database details and mail servers etc.


MySQL:

CREATE TABLE `news` (
  `id` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `message` text NOT NULL,
  `image` blob DEFAULT NULL,
  `date` date NOT NULL,
  `time_posted` time NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

CREATE TABLE `users` (
  `id` int(11) NOT NULL,
  `first_name` varchar(50) NOT NULL,
  `last_name` varchar(50) NOT NULL,
  `email` varchar(100) NOT NULL,
  `phone` varchar(20) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `password_hash` varchar(255) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `last_login` timestamp NULL DEFAULT NULL,
  `role` enum('user','admin') DEFAULT 'user',
  `status` enum('active','inactive','suspended','deleted') DEFAULT 'active',
  `verification_status` enum('pending','verified') DEFAULT 'pending',
  `verification_token` varchar(255) DEFAULT NULL,
  `reset_token` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

Buy me a coffee:

If you use any part of this and want to thank me you can buy me a coffee at this link

foodsite's People

Contributors

cusyabasic 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.