This repository contains my code for the assignment given as part of the selection process for the post of Web Convenor of UGAC, IIT Bombay.
To run the code locally,
- Install XAMPP server
- "START" Apache and MySQL from the XAMPP control panel
To access the login page-
- Make a folder by the name 'phplogin' inside C:\xampp\htdocs
- Copy the files from question 1 folder and paste inside this folder
Go to http://127.0.0.1/phplogin/index.php from your browser to access the login page.
I have used the library "mysql-connector" to access the databse.
To use the script-
- Save the python file from the Question 2 folder
- In the command line, run "pip install mysql-connector"
- cd to the directory where above python file is saved
- Run "python login.py"
Download addjson.py and data.json files from the Question 3 folder, add the data of the user to be added to the data base, in the format as is in the data.json file.
Other steps as in Question 2