Insurance Management System
This system is part of a project submitted for the course, "Internet and Web Programming". It is an insurance management system written mostly in PHP and connects to a MySQL database. This document details the setup process for this system.
Try the live site here.
Apache Web Server
MySQL 5.6 (with database creation privileges)
Follow the below sections in order.
Setup the server
Navigate to the
srcfolder and open
For the database URL environment variable rewrite it in the following format-
- Start Apache server.
Setup the database
Recommended: Use PHPMyAdmin to execute the SQL scripts.
Note: Make sure you have a database created with create, update and insert permissions.
queries.sql file in the directory root using the MySQL command line or PHPMyAdmin. This will create the required tables and populate the database with pre-defined values.
Install the latest LTS of node.js for your operating system.
nodeis in your system PATH.
Navigate to the directory root of this repository.
Open a command window in the directory and run
npm run buildon the command prompt. Once this is finished, you will see a new folder called
outthat has been created with all the files ready to be executed.
Copy the contents of the
outfolder to the
wwwfolder of Apache or make a symlink to it if you so prefer.
Make sure you have an internet connection.
http://localhost/main.phpon your browser. The landing page should open.
Use the following default accounts to access the site: For employees and managers, the username is "1" and the password is "reddit" without quotes. For customers, the username is "1" and the password is "rahul".