项目作者: harshraj22

项目描述 :
This stores website for hackathon
高级语言: PHP
项目地址: git://github.com/harshraj22/website.git
创建时间: 2019-11-08T16:55:02Z
项目社区:https://github.com/harshraj22/website

开源协议:

下载


Problem Statement :

“Too many mails”: Almost all our communication with the institute and also amongst the
students is based on mails. Due to this some important mails are quite often missed and students
gmail is often filled with lots of unwanted mails.

A quick Survey:

A quick survey done on the students of our college, shows the following results:
here

Screenshots:

Screenshot1
Screenshot2

Installation Guide :

  • Install xampp/lamp on your machine
  • Create login.php in directory website cd website && git clone https://github.com/harshraj22/website.git
  • Fill the following contents inside the file :
    1. <?php
    2. $hostname = 'localhost';
    3. $username = 'root (or any other user)';
    4. $password = '<insert your xamp/lamp password>';
    5. $database = 'mailmaintainer';
    6. ?>
  • Database Creation :

    • Create database named mailmaintainer
    • Create all the required tables referring this link via command line
    • Use main_table.sql , temp_table.sql, mailmaintainer.sql, time_table.sql for the above process.
    • This creates your basic database along with all the required tables.
    • Run the following to add default admin in mysql INSERT INTO auth VALUES('manageevents123@gmail.com','<insert admin password>');
  • Setup for Google OpenId:

    • Go to auth directory
    • Remove everything (if exists) except auth.php
    • Install Google API Client using composer require google/apiclient (In case you don’t have composer installed, install using sudo apt-get install composer)

      ```Directory Structure :
      .
      |—website

      1. |--website
      2. |-- README.md
      3. |-- Report.md
      4. |-- attachments
      5. | `-- randomfile.txt
      6. |-- login.php
      7. |-- mailmaintainer.sql
      8. |-- main_table.sql
      9. |-- newfile
      10. |-- reference.txt
      11. |-- temp_table.sql
      12. |-- time_table.sql
      13. |-- auth
      14. | |-- auth.php
      15. | |--composer.json
      16. | |--composer.lock
      17. | |--vendor/
      18. `-- user
      19. |-- add_event.php
      20. |-- add_event_backend.php
      21. |-- add_keywords.php
      22. |-- book_slot.php
      23. |-- book_slot_php.php
      24. |-- logout.php
      25. |-- profile.php
      26. |-- slot.php
      27. |-- time_table.php
      28. |-- update_preferences.php
      29. `-- update_preferences_table.php

      ```

    • In case something goes wrong with google sign in, check form action in auth.php : http://localhost/website/website/user/profile.php & compare with the directory structure. And port for localhost should be 80