Skip to content
/ placement Public

simple placement portal website created for software architecture course

Notifications You must be signed in to change notification settings

smjn/placement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

placement

Simple placement portal website created for software architecture course. Files are organized as:

  • common - comprizes the common DTOs used throughout the project.
    • AdminDTO.php
    • JafDTO.php
    • PlacedStudentDTO.php
    • StudentSearchDTO.php
    • CompanyDTO.php
    • LoginDTO.php
    • StudentDTO.php
  • tier1 - comprizes files dealing with code mainly used for display.
    • admin.php
    • css - the css stylesheet used in the project
      • login.css
      • main.css
    • index.php
    • student.php
    • verifySession.php
    • company.php
    • dpc.php
    • logout.php
    • test.php
  • tier2 - comprizes code that forms the 'business logic' of the project. Also includes the presentation layer formatter classes. This was a judgement call, could have included these in the tier1.
    • AdminBL.php
    • CompanyDataFormatHelper.php
    • LoginBL.php
    • AdminDataFormatHelper.php
    • DPCBL.php
    • PlacedDataFormatHelper.php
    • CompanyBL.php
    • JafDataFormatHelper.php
    • StudentBL.php
  • tier3 - deals with code that communicates to and from the data base.
    • AdminDAO.php
    • CompanyDAO.php
    • DPCDAO.php
    • AuthenticateHelper.php
    • DBConnection.php
    • StudentDAO.php
  • placement.sql - sets up the DB and adds some sample data.

The code is almost entirely object oriented written using php classes except for the code in tier1 whihc is scripted as it majorly include html code. The css is also custom and inspired from Android colorscheme.

There are following agents in the scenario.

  • DPC - department placement co-ordinator. Adds companies to the DB.
  • admin - repsonsible for setting a student as DPC.
  • student - one who takes part in the placement. Applies to companies and signs job application forms.
  • company - floats job application forms and annouce results.

How to run?

In Linux you can setup the website by:

  • clone the repo in /var/www/.
  • recursively chown the downloaded repo as :www-data.
  • set up the db using the placement.sql script.
  • add the default values to the file tier3/DBConnection.php according to your connection.
sudo su
cd /var/www
git clone https://github.com/sushantmahajan/placement
chown -r :www-data placement
#setup DB
cd placement
mysql -u username -p -h localhost placement < placement.sql
#add connection params to the constructor of the following file. Currently it has empty strings only.
vim tier3/DBConnection.php

About

simple placement portal website created for software architecture course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published