Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Пронин Евгений
/
RfidServerFake
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit fefd54d6
authored
2019-11-29 23:02:16 +0300
by
Пронин Евгений
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
readme
1 parent
b8eb47f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
README.md
app.js
README.md
View file @
fefd54d
# Rfid server fake
# Rfid server fake
> An back-end server for rfis deamon
> A fake rfid daemon for testing rfid powered applications
> Uses nodejs
## Install and Running
## Install
`git clone http://gitlab.fimacomarketing.com:10080/ProninE/RfidServerFake.git`
1.
cd RfidServerFake
### install node js
2.
npm install
https://github.com/nodesource/distributions/blob/master/README.md#deb
3.
npm run dev (For development)
4.
npm run start (Run/Start server for Production)
Open http://localhost:8888/
### install app
clone repository
`git clone http://gitlab.fimacomarketing.com:10080/ProninE/RfidServerFake.git`
cd RfidServerFake
npm install
## Running
npm run start (Run/Start server for Production)
Open http://localhost:8888/
##
# Interface
##
Documentation
Service uses port 8888
Service uses port 8888
see
[
Rfid Server documentation
](
http://gitlab.fimacomarketing.com:10080/PeripheryServer/PeripheryServer/raw/master/Daemons/RFIDServer/bin/help.txt
)
see
[
Rfid Server documentation
](
http://gitlab.fimacomarketing.com:10080/PeripheryServer/PeripheryServer/raw/master/Daemons/RFIDServer/bin/help.txt
)
\ No newline at end of file
\ No newline at end of file
app.js
View file @
fefd54d
...
@@ -124,7 +124,7 @@ app.post("/ctl/disconnect", (req, res) => {
...
@@ -124,7 +124,7 @@ app.post("/ctl/disconnect", (req, res) => {
});
});
app
.
post
(
"/ctl/connect"
,
(
req
,
res
)
=>
{
app
.
post
(
"/ctl/connect"
,
(
req
,
res
)
=>
{
state
.
devices
=
makeDevice
([])
;
state
.
devices
=
[
makeDevice
([])]
;
res
.
status
(
200
).
send
(
"ok"
);
res
.
status
(
200
).
send
(
"ok"
);
});
});
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment