rejetto forum

Software => HFS ~ HTTP File Server => Programmers corner => Topic started by: rejetto on July 03, 2012, 03:05:22 PM

Title: HFS 3 preview
Post by: rejetto on July 03, 2012, 03:05:22 PM
HFS 3 is still at a very early stage.
It's not even beta, not even alpha.
I'm building it from the very ground, but some of you may like to see what's going on.

There's no installing procedure yet, but i'll try to help you.

1) install node. Latest version should always fit.
http://www.nodejs.org/

2) install dependencies

for Windows 7:
Python 2.7.3 (http://www.python.org/download/releases/2.7.3#download)
Windows 7 64-bit SDK (not needed if you have 32bit) (http://www.microsoft.com/en-us/download/details.aspx?id=8279)
VS C++ 2010 (http://go.microsoft.com/?linkid=9709949)
If you get errors that the 64-bit compilers are not installed you may also need the compiler update for the Windows SDK 7.1 (http://www.microsoft.com/en-us/download/details.aspx?id=4422)

for Windows 8:
VS C++ 2012 (http://go.microsoft.com/?linkid=9816758)

3) open the command line, enter a folder of your choice, like "hfs" and execute:

git clone https://github.com/rejetto/hfs.git
npm install
node main


3) at this point you should get this output
   info  - socket.io started
   info  - socket.io started
DBG)   listening on port 8
DBG)   listening on port 88


4) open your browser (only Chrome has been tested).
You will find back-end administration at
http://localhost:88/

and the front-end for anyone else at
http://localhost:8/



let me know if this works for you!
If it doesn't, provide as much information as you can. Screen shots may also help.
Title: Re: HFS 3 preview
Post by: raybob on July 07, 2012, 04:01:00 PM
It failed....
Title: Re: HFS 3 preview
Post by: rejetto on July 09, 2012, 04:59:17 PM
what's inside that folder?

anyway, you can try
npm install cloneextend
Title: Re: HFS 3 preview
Post by: raybob on July 10, 2012, 03:50:58 PM
I Zipped the download like you said and that is what happens.
Title: Re: HFS 3 preview
Post by: raybob on July 10, 2012, 03:54:16 PM
I got 'node main' to work after doing 'npm install cloneextend', 'npm install async' and 'npm install socket.io'.

It still won't isntall thogouh
Title: Re: HFS 3 preview
Post by: rejetto on July 10, 2012, 06:22:14 PM
this is what happens here instead http://clip2net.com/s/26GmH

then i can "cd node_modules\hfs"
and "node main"

... what if you run "npm ls" ?
Title: Re: HFS 3 preview
Post by: raybob on July 14, 2012, 09:30:59 PM
I can only get HFS3 to start if I do these commands in this order.  It will not install but it runs without installing.

npm install cloneextend
npm install async
npm install socket.io
node main
Title: Re: HFS 3 preview
Post by: rejetto on July 15, 2012, 12:33:35 PM
you mean you have to run these commands EVERY time you want to use HFS?
Title: Re: HFS 3 preview
Post by: raybob on July 15, 2012, 03:33:17 PM
Just the first time, then a folder called 'node_modules' is created in the HFS folder with subfolders socket.io, async, and cloneextend, and HFS will work only if those 3 extra modules are there.
Title: Re: HFS 3 preview
Post by: rejetto on July 16, 2012, 12:56:27 PM
i don't know why "dependencies" refused to install on your system :-/
that's normally automatic.
I have Win7 64bit.
I just tried on a WinXP virtual machine and all went fine.
I executed: npm install hfs. The process finished with a folder "node_modules" with another folder "hfs" in it, and in it i can run:
node main
Title: Re: HFS 3 preview
Post by: almulder on December 24, 2012, 06:24:01 PM
Installed on Windows 8 - Install went with no issues. :)

To launch I had to change folders as it was installed into 2 sub folders.

"c:\hfs\node_modules\hfs"

Launched Main, that worked

Code: [Select]
C:\hfs\node_modules\hfs>node main
   info  - socket.io started
   info  - socket.io started
DBG)   listening on port 8
DBG)   listening on port 88

Back end works (From what I can see.)
Code: [Select]
Back End
Virtual File System
"bind to disk"
"add item"
"rename"
"delete"
with only "add item" clickable
But unable to get added items to save after adding.

well when page refreshes there are no items listed, but trying to re add the same item again i get a popup box:
Code: [Select]
already exists


But unable get to see front-end. "Oops! This link appears to be broken."
when trying to access i get this in the cmd window, but noting in chrome.

Code: [Select]
DBG)   serving 127.0.0.1:8 /
DBG)   serving 127.0.0.1:8 /favicon.ico
DBG)   vfs.changed
DBG)   serving 127.0.0.1:8 /
DBG)   serving 127.0.0.1:8 /favicon.ico
DBG)   serving 127.0.0.1:8 /
DBG)   serving 127.0.0.1:8 /favicon.ico
DBG)   serving 127.0.0.1:8 /
DBG)   serving 127.0.0.1:8 /favicon.ico

Using windows 8 & Chrome

I just wanted to see what HFS 3 was going to be like was why I tried to install.

If you need me to test anything else, let me know.
Title: Re: HFS 3 preview
Post by: rejetto on December 26, 2012, 10:47:18 PM
consider this is in the "programmers" forum board because what you are going to see is not interesting for normal users.
It's the technology behind the scenes...

when you "add item" you have to input the whole path to the thing (folder?) you want to add. Like "C:\users"

It is supposed to work this way, and i tried right now.
Title: Re: HFS 3 preview
Post by: rejetto on March 05, 2013, 02:12:57 PM
ok i found that Win7 has heavy dependencies, you need to install many things as a base (thanks, TooTallNate (https://github.com/TooTallNate/node-gyp#installation)).
The first post was updated accordingly.
Title: Re: HFS 3 preview
Post by: samjke on October 14, 2018, 03:53:01 AM
doesn't work on linux :(
Title: Re: HFS 3 preview
Post by: rejetto on October 14, 2018, 09:49:23 PM
i'm sorry but i'm not working on HFS 3 anymore. No time :(