1. Euphoria MVC updates

I committed several improvements to Euphoria MVC today.

https://github.com/OpenEuphoria/euphoria-mvc

  • Built-in web server now supports GET and POST requests.
  • Model library can now query/insert/update/delete objects.
  • Template library does better at handling more expressions.
  • Route parser now accepts arbitrary regex patterns for type-checking.
  • Updated documentations!

Update 7/6/2020:

  • Added JSON parser

Update 9/15/2020:

  • Added CURL wrapper

Update 9/26/2020:

  • Added more functions and documentation

There's still a lot to do. But I'm still working on it. I'm not dead yet!

-Greg

new topic     » topic index » view message » categorize

2. Re: Euphoria MVC updates

ghaberek said...

I committed several improvements to Euphoria MVC today.

https://github.com/OpenEuphoria/euphoria-mvc

  • Built-in web server now supports GET and POST requests.
  • Model library can now query/insert/update/delete objects.
  • Template library does better at handling more expressions.
  • Route parser now accepts arbitrary regex patterns for type-checking.
  • Updated documentations!

There's still a lot to do. But I'm still working on it. I'm not dead yet!

-Greg

Sounds great Greg. Hopefully thew new site will be up sometime this year.

new topic     » goto parent     » topic index » view message » categorize

3. Re: Euphoria MVC updates

Icy_Viking said...
ghaberek said...

I committed several improvements to Euphoria MVC today.

https://github.com/OpenEuphoria/euphoria-mvc

  • Built-in web server now supports GET and POST requests.
  • Model library can now query/insert/update/delete objects.
  • Template library does better at handling more expressions.
  • Route parser now accepts arbitrary regex patterns for type-checking.
  • Updated documentations!

There's still a lot to do. But I'm still working on it. I'm not dead yet!

-Greg

Sounds great Greg.

Agreed! Can't wait to see this when it's finally ready to be rolled out.

Icy_Viking said...

Hopefully thew new site will be up sometime this year.

Fingers crossed.

new topic     » goto parent     » topic index » view message » categorize

4. Re: Euphoria MVC updates

I added a JSON parser today! (Well, I actually wrote it a month ago.)

Source: https://github.com/OpenEuphoria/euphoria-mvc/blob/v1.8.0/include/mvc/json.e

Docs: https://github.com/OpenEuphoria/euphoria-mvc/blob/v1.8.0/docs/JSON.md

Edit: the docs reference Euphoria maps but I stripped all of that out to simplify the parser. Objects are just sequences of {key,{type,value}} items now. That's why I added json_fetch to look up values from keys. I'll update the documentation to remove references to maps soon.

-Greg

new topic     » goto parent     » topic index » view message » categorize

5. Re: Euphoria MVC updates

I added a CURL wrapper today! (Well, I actually wrote it several years ago to make the existing euweb work with reCAPTCHAv2.) Updated release to v1.9.0.

https://github.com/OpenEuphoria/euphoria-mvc/releases/tag/v1.9.0

-Greg

new topic     » goto parent     » topic index » view message » categorize

6. Re: Euphoria MVC updates

I added a lot more CURL functions and a few more JSON functions and updated the documentation a bit. Updated release to v1.10.0.

https://github.com/OpenEuphoria/euphoria-mvc/releases/tag/v1.10.0

-Greg

new topic     » goto parent     » topic index » view message » categorize

7. Re: Euphoria MVC updates

That's funny Greg. I built an importer that would load in the constants and functions from a C- header file and create a Euphoria E file for in order to create a curl wrapper. Is it necessary to use MVC in order to use the CURL function?

SD Pringle

new topic     » goto parent     » topic index » view message » categorize

8. Re: Euphoria MVC updates

SDPringle said...

That's funny Greg. I built an importer that would load in the constants and functions from a C- header file and create a Euphoria E file for in order to create a curl wrapper. Is it necessary to use MVC in order to use the CURL function?

Nope, it's entirely separate and in its own directory. It's just so integral to building web apps that I figured I would just include it directly.

I wrapped the whole thing by hand and made some improvements from when I originally wrote it a couple years ago.

Anyone who needs it can just copy the files from here: https://github.com/OpenEuphoria/euphoria-mvc/tree/master/include/curl

I also have some basic documentation here: https://github.com/OpenEuphoria/euphoria-mvc/blob/master/docs/CURL.md (including where best to get Windows binaries!)

-Greg

new topic     » goto parent     » topic index » view message » categorize

9. Re: Euphoria MVC updates

The failing t_net_http.e has been a thorn in my side for years now and it is a bigger waste of time to me to re-implement what CURL from (Euphoria MVC) already does in Euphoria than to leverage CURL it in order to fix t_net_http. I wouldn't mind if std/net/http.e went away completely at this point and I don't see anyone really using it. I am the kind of person who doesn't like to remove something from a library once it is already in there, though. What do you think?
Forked into: RM std/net/http.e?

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu