-
Install XAMPP.
-
In XAMPP, start Apache and MySQL.
-
Log in to phpMyAdmin by navigating to http://localhost/phpmyadmin/ in your browser.
-
Create a database in phpMyAdmin named "ffdb".
-
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.
-
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)
-
Create another table in ffdb named votes with 2 columns:
- id (int(255))
- user_id (varchar(255))
-
Create another table in ffdb named food_entry_comment with 2 columns:
- id (int(255))
- comment (varchar(1000))
-
In FFDBController change the IP_ADDRESS IP address to the address of your local machine.
-
Create a folder in xampp/htdocs named foodflip and copy the contents of the php folder to xampp/htdocs/foodflip.
-
In XAMPP click on Shell.
-
In the bash that opens up, type mysql -u root -p. When it asks for a password, just press ENTER.
-
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
-
Back in XAMPP click on Config for Apache, then click phpMyAdmin (config.inc.php).
-
Find the line that says "$cfg['Servers'][$i]['password'] = '';" and change it to "$cfg['Servers'][$i]['password'] = 'admin';".
foodflip2.0's Introduction
foodflip2.0's People
Forkers
mjoudehRecommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.