anorak
v0.0.1
Published
offline-first KISS web server
Downloads
4
Maintainers
Readme
?+++?7?
.?+++??I?I
.,++??????I??+.
..++?++?+??I???$7.
+DNNDD8D888DNN7II
..8DDDDDDDDNNNNNNNN.
.77ONNDDDDDNNN?IZ+.
.?77DZ$77$$$$?I?.
..I$NZ?I$7II??+..
. .=?I?87OI::7I$??N+++
.=++++=?I??+777++87?+?++++.
=+=+++++??7N?7Z77Z$+++?+++???
+7???+?+??+++7+$8?7++++?+?+$$?I .
.+?I?+++++?+???7$?+++++?III?+Z7??I .
..?I?7+?7I++++++++$+=II$I++?+?77++II.
.+7I?8?I7II+==++?O+?+?=+?$7?+?I77?I? .
. +++?7IZ$==7+++=+?+++7++??++I??I=??III
.+++??II+?+7?++++I$$+7??++?I7+?O????I?.
.+++?I7I.??++7++++?7?+?????I?=I?7??+?I+I
.+?7II7..=?=I???I+?I?????7?IO++?~~?+I???
.IIII+$ =?+=$III++?I?I+7++?????+I ???+?I.
.,?+???O.++=+7?++++I?+??7++++???II ?+++?+7.
+?+++$..++=7+=++?+II+++I?+++++I??.?II???7
+?+++?, ?++++==??+??+????+++??+?7.~7??7?7
+??II+. ??+?+=+?++??+I??+++++?+?I .++???7
?I?+?7 +=+===??++7++?++++?+++??7..????I7
+???II..+===++??7I++??+?+?++++??7 .????I7.
+???I7. +?++????I++??I?++++?II??I ???II7
+I??IZ..+=???I???+????+?++?I?++?I .??I?I7
.?II7I +?+??+?I??+?++++?II++?I?7 ??III7
..II?7$ ????I???III??++??+?+?I?I$ ??II77
.??7$7 .???I???I??+??I7777?????$$ II?II$
I??7?. 7I??I77$I??+???+???7$$7$Z. 7II77=.
7$77I .$$$$$$$$$$ZZZZZZZ$ZOZOZZ8 .I7I77.
IIIII. ..........:.,=........... II777,
d8b
?88
88b
d888b8b 88bd88b d8888b 88bd88b d888b8b 888 d88'
d8P' ?88 88P' ?8bd8P' ?88 88P' `d8P' ?88 888bd8P'
88b ,88b d88 88P88b d88 d88 88b ,88b d88888b
`?88P'`88bd88' 88b`?8888P'd88' `?88P'`88bd88' `?88b,
A N O F F L I N E - F I R S T K I S S W E B S E R V E R
install
installs dependencies
npm install
starts the server for the first time
node server.js &
OR
npm run-script start &
run
node server.js &
OR
npm run-script start &
develop
nodemon server.js &
OR
npm run-script watch &
reference
- express (serves the http)
- socket.io (real-time comm between cli and srv)
- evenlevel (isomorphic key-value store API for cli and srv)
TODO
- bin command, accepting port and creating basic dir structure
- setup socket.io comm to sync local ... remote stores
- detect offline and online, calling sync
- if online attempt to notify other side
- autogen userId?
- create basic chat app as an example