Giter VIP home page Giter VIP logo

foodflip2.0's Introduction

Food Flip

Database Setup

  1. Install XAMPP.

  2. In XAMPP, start Apache and MySQL.

  3. Log in to phpMyAdmin by navigating to http://localhost/phpmyadmin/ in your browser.

  4. Create a database in phpMyAdmin named "ffdb".

  5. Create a table in ffdb named food_entries with seven columns:

    • Building (varchar(255))
    • Location (varchar(255))
    • FoodCategory (varchar(10))
    • FoodType (varchar(255))
    • FoodDescription (varchar(255))
    • id (int(255))
    • price (varchar(255))
    • Votes (int - default 0)
    • syncsts (tinyint - default value 0) - this will possibly be used for syncing new entries.
  6. Create another table in ffdb named users with 4 columns:

    • user_id (varchar(255))
    • submissions(int()- default 0)
    • comments (int()- default 0)
    • karma (int()- default 0)
  7. Create another table in ffdb named votes with 2 columns:

    • id (int(255))
    • user_id (varchar(255))
  8. Create another table in ffdb named food_entry_comment with 2 columns:

    • id (int(255))
    • comment (varchar(1000))
  9. In FFDBController change the IP_ADDRESS IP address to the address of your local machine.

  10. Create a folder in xampp/htdocs named foodflip and copy the contents of the php folder to xampp/htdocs/foodflip.

  11. In XAMPP click on Shell.

  12. In the bash that opens up, type mysql -u root -p. When it asks for a password, just press ENTER.

  13. You should now see 'mysql>' on the left. Type the following, pressing ENTER after each input:

    • use mysql;
    • UPDATE mysql.user
    • SET Password=PASSWORD("admin")
    • WHERE User="root";
    • FLUSH PRIVILEGES;
    • exit
  14. Back in XAMPP click on Config for Apache, then click phpMyAdmin (config.inc.php).

  15. Find the line that says "$cfg['Servers'][$i]['password'] = '';" and change it to "$cfg['Servers'][$i]['password'] = 'admin';".

foodflip2.0's People

Contributors

billiford avatar iknowanastasiya avatar notchester avatar vpalacios7211 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

mjoudeh

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.