GithubHelp home page GithubHelp logo

ks-amit / hims Goto Github PK

View Code? Open in Web Editor NEW
60.0 4.0 25.0 21.83 MB

Hospital Information Management System create using Node Js

License: Other

JavaScript 6.91% CSS 65.21% PHP 0.15% HTML 26.48% TSQL 1.25%
hospital-management hospital-information-management information-management-system information-manager nodejs node-js html-css html css bootstrap

hims's Issues

How to fix ReferenceError: insertState is not define

Hi Dumbape, I'm trying to gain access to the Login Page but it gives giving me this error upon the loading of the main.js file. I have done the necessary configuration in the db_controller file.

Error message.....
Communications@DESKTOP-RHC1CHH MINGW64 /c/xampp/htdocs/HIMS
$ node main.js
C:\xampp\htdocs\HIMS\controllers\db_controller.js:85
insertState('Ilorin', 'Kwara', function(interState){
^

ReferenceError: insertState is not defined
at module.exports (C:\xampp\htdocs\HIMS\controllers\db_controller.js:85:2)
at Object. (C:\xampp\htdocs\HIMS\main.js:67:1)
at Module._compile (internal/modules/cjs/loader.js:1157:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1177:10)
at Module.load (internal/modules/cjs/loader.js:1001:32)
at Function.Module._load (internal/modules/cjs/loader.js:900:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js
:74:12)
at internal/main/run_main_module.js:18:47

code......
module.exports = function(resetSystem){

// delete data from all tables
  //	clearTable('city_state');
 //	clearTable('complain');
 //	clearTable('curr');
 //	clearTable('doctor');
 //	clearTable('employee');
  //	clearTable('employee_contact');
 //	clearTable('employee_email');
  //	clearTable('hardware');
  //	clearTable('login');
 //	clearTable('nurse');
 //	clearTable('patient');
 //	clearTable('record');
 //	clearTable('room');
 //	clearTable('server');
 //	addServer();

insertState('Bangalore', 'Karnataka', function(){
	insertEmployee(1000,'Admin','male',0.00,'Manager',1234567890,adminDetails.emailId,'Somewhere on Earth','Bangalore', function(){
		const pass = adminDetails.password;
		bcrypt.hash(pass, 10, function (err, hash) {
			insertLogin(1000, hash);
		});
	});
})
}

PROBLEM

The login in the application was done but upon login through the complain
The operation is not completed.

Thank you

Bycrypt

Can u give me some advice with this problem
\controllers\db_controller.js:59
module.exports resetSystem = function(){
^^^^^^^^^^^

SyntaxError: Unexpected identifier

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.