Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serverside scripting #10

Closed
michaelneu opened this issue Dec 14, 2018 · 3 comments · Fixed by #20
Closed

serverside scripting #10

michaelneu opened this issue Dec 14, 2018 · 3 comments · Fixed by #20
Labels
Milestone

Comments

@michaelneu
Copy link
Owner

michaelneu commented Dec 14, 2018

add support for e.g. PHP using FastCGI

@michaelneu michaelneu added this to the webxcel v0.3 milestone Dec 14, 2018
@FFSSolutions
Copy link

Hi Michael very cool what you've done here. As to server side scripting what are your thoughts? I am interested in integrating support for Access DB. Is this something you have tried out is there any barriers that you know of in doing this?

@michaelneu
Copy link
Owner Author

As for serverside scripting, I was thinking of integrating PHP using its TCP interface some time, because running PHP from an Excel webserver feels so wrong. I've added that to the first comment for clarification. If you want to take a look at that, feel free to do so, but I wanted to do this too 😄

I haven't tried adding support for MS Access yet, but it might be worth taking a look at. If done correctly, one could generate a REST backend from Access files instead of Excel only. I guess using SQL, it'd also be easier to build the JSON structure than using the WorksheetRelationshipMapper. I've created a new issue for this: #17

Regarding general serverside scripting: webxcel should be able to handle basic VBA scripting using the IWebController interface already. By overriding the MatchesUrl and ProcessRequest methods, one should be able to script basic things (pun intended) similar to this:

Implements IWebController

Private Function IWebController_MatchesUrl(requestUrl As String) As Boolean
    IWebController_MatchesUrl = True
End Function

Private Function IWebController_ProcessRequest(request As HttpRequest) As HttpResponse
    Dim response As HttpResponse
    Set response = New HttpResponse
    
    ' do something, e.g. connect to Access and store something in response.Body

    Set IWebController_ProcessRequest = response
End Function

@FFSSolutions
Copy link

Thats pretty much what I was thinking, to do. I have created a new class controller for Access and am just starting to knock that together now, also with the idea of a RESTful based premise. I love you want to do PHP because it feels wrong lol. As for me after I get this Access portion mocked up and into a beta version, I'll be looking to integrate NODE. My work circumstances are such that I do not have a proper dev server setup and need to prototype my apps in a LAN so this is what I am working with. Thanks again for putting out webxcel. you'll be hearing from me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants