Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

MiNLabSys-Server

This is the code of main server in MiNLabSytem Project.

This project is using Node.js, Express and Mysql.

You should set up your Mysql datebase and make a new file called dbinfo.json in the project directory before you run the code.

dbinfo.json should be like this:

{
    "user": "your db user",
    "passwd": "your password to the user",
    "db": "the db you use"
}

After that, just simply run:

$ npm install
$ node server

Feature: Door Access

You should set up a table called "member" in your db like this:

+----+-----------------+--------+------------+
| id | uid             | name   | enddate    |
+----+-----------------+--------+------------+
|  1 | xxx,xxx,xxx,xxx | xxx    | 20xx-xx-xx |
+----+-----------------+--------+------------+

id is the primary key

uid is a string of IC card uid. IMPORTANT: xxx is a DEC number. uid should be unique.

name is the person's name.

enddate is the date after which the person's access will be expired.

To make a door controller, see: MiNLabSys-Door

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.