VIT Exchange Portal is a web application that will allow VIT Students to interact with each other. The application shall be helpful for a variety of purposes. It consists of mainly three forums: Reviews exchange forum, Discussions forum and cab sharing forum.
Click here to take a tour of VIT Exchange Portal.
Use username "15BCE0342" (without quotes) and password "qwerty" (without quotes) to login.
- XAMPP web server
- PHP
- MYSQL
- HTML
- CSS
- Start Xampp Server Control Panel.
- Start Apache and MySQL in the Xampp Control Panel.
PHPMyAdmin is recommended to execute the SQL scripts. Execute the database.sql file inside dataBase folder in the directory root using the MySQL command line or PHPMyAdmin in order to create the required tables.
Some PHP files given in the src folder contains the following code segment.
$url=parse_url(getenv("CLEARDB_DATABASE_URL"));
$server = $url["host"];
$username = $url["user"];
$password1 = $url["pass"];
$db = substr($url["path"],1);
The part is to connect to the database which is hosted over heroku cloud. To run the website locally you should edit these lines.
// Remove the $url = ... line
$server = "localhost";
$username = "root";
$password1 = "YOUR PASSWORD FOR LOCALHOST IF ANY";
//Leave the quotes empty without spaces if you do not have any password set for localhost.
$db = "NAME OF THE DATABASE";
//In the dataBase file name of database is "vep" leave it as it is or change it accordingly in the above line.
- Copy the contents of src folder to C:\xampp\htdocs in your local computer. Also copy the contents of images folder inside src to the same folder.
- Open http://localhost/index.php on your browser. Make sure Apache and MySQL are turned on in Xampp Control Panel.
- The homepage of VEP should open. You can browse through the entire website.
- Use username "15BCE0342" (without quotes) and password "qwerty" (without quotes) to login.