ks-amit / hims Goto Github PK
View Code? Open in Web Editor NEWHospital Information Management System create using Node Js
License: Other
Hospital Information Management System create using Node Js
License: Other
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);
});
});
})
}
The login in the application was done but upon login through the complain
The operation is not completed.
Thank you
Can u give me some advice with this problem
\controllers\db_controller.js:59
module.exports resetSystem = function(){
^^^^^^^^^^^
SyntaxError: Unexpected identifier
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.