A minimal quora like application made with vanilla php, mysql, and basic javascript for validation.
Trivia- This was made back in summer of 2015. This was my first php project.- The setup is primitive. There are better ways to setup a php app these days.
- Setup servers
- either install
XAMPP/LAMP, it will take care of everything - or install
php7andmysqlon your system and make sure they're available on command line - If you're on windows, you'll need to set environment variables.
- either install
- Replace your mysql installation's username and password in
Qconnect.php - Now we need to start the
phpserver.- If you're using
xampp, simply open the control panel and fire up the apache server. - Alternatively, if you have
php7installed in your computer,php7supports an inbuilt server. Simply navigate to thesrcfolder and run the commandphp -S localhost:8000to fire up the server. Navigate tohttp://localhost:8000to see homepage.
- If you're using
- Now we need to start the
sqlserver- If you're using
xampp, simply open the control panel and fire up the mysql server - Alternatively, if you have
mysqlinstalled, simply start the server
- If you're using
- Next we need to create the database
- Simply go to
http://localhost:8000/Qdatabase.phpin the browser. You should see a success message. - If there's any error, first resolve it. Most errors are because of wrong username and password.
- Database dump
Quora.sqlfor any reference if needed.
- Simply go to
- The project uses only minimal css, focus is on backend.
- sign up
- login
- ask a question
- at any time, you can display all questions, answer them, view already written answers







