by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Raj Kumar
    @rajcrk
    Hey, I'm kinda new here !. I went through the documentation of FortJs at fortjs.info.
    I believe a lot could be improved if the documentation website is made open source 🙂
    Ujjwal Gupta
    @ujjwalguptaofficial
    yeah the doc website is open sourced too
    Let me know if you need any help
    Raj Kumar
    @rajcrk
    Sure 🙂. Seems like an interesting project to me !. Hope I could contribute in some way possible!
    Raj Kumar
    @rajcrk
    Hey @ujjwalguptaofficial 👋. Seems like there were some minor issues with the worker docs. I've update the docs to the best of my knowledge and sent a PR! .Hope its helpful 😀
    Ujjwal Gupta
    @ujjwalguptaofficial
    thanks man, looking to see more contribution.
    There are multiple other ways to contribute - Let other people around you know about this project , you can write an article or create a tutorial video.
    Raj Kumar
    @rajcrk
    Sure @ujjwalguptaofficial 🙂✌️
    Raj Kumar
    @rajcrk
    Hey @ujjwalguptaofficial 👋, Is there any possible way we could move fortJs into a seperate github open source organization so that people would collaborate more ! Something similar to public labs
    Ujjwal Gupta
    @ujjwalguptaofficial
    no, but thanks for letting me know.
    I want contribution on individual level rather than on organisation level
    I have different plans for it but right now i m focusing on making it solid with lots of awesome feature.
    Raj Kumar
    @rajcrk
    Cool ✌️
    Christopher
    @ctngln
    Hi all, I'm a super noob who's curious about the framework. I'd like to try and build something basic with it, but there isn't a tutorial out there that takes me all the way. Would someone be willing to write up a tutorial that walks one through a basic CRUD app connected to, say, a mongo database (either local or cloud hosted)? If you got it on Scotch.io or FreeCodeCamp or Medium, i'm sure it'd get a lot of exposure.
    (something using a form)
    Christopher
    @ctngln
    I should say that I really like the idea of what Fortjs is doing, which is to provide a uniform, modern way of building a site/app. I've read and tried a number of node tutorials and each one is appreciably different from the next -- there is no canonical way to approach each project as there is in, say, Rails. But I think Fortjs has the potential to be a new and different (and complete) template. Sailsjs just never got full traction.
    Ujjwal Gupta
    @ujjwalguptaofficial

    Hi

    we have a dedicated page on medium full of tutorials. Check here - https://medium.com/fortjs

    Ujjwal Gupta
    @ujjwalguptaofficial
    Anyway, i will create a crud tutorial. Thx.
    Please feel free to ask if you need help with anything else. I can understand its a complete new different architecture, so there might be issue in understanding. Also if you think documentation can be improved feel free to edit or suggest any changes if you want.
    Ujjwal Gupta
    @ujjwalguptaofficial
    @ctngln - i have created example for crud operation with form. Check out here - https://github.com/ujjwalguptaofficial/fortjs-examples/tree/master/crud
    Faizal Vasaya
    @faiztherocker
    Hey @ujjwalguptaofficial ,
    I have been trying to handle 500 in the wall by detecting the status code and modifying the response as required. Currently, it throws the entire error stack to the frontend which needs to be controlled by only sending the text ("Error") and status code as 500.
    Faizal Vasaya
    @faiztherocker
    P.S: Currently I was able to handle it at controller level by catching the exception and return a 500 jsonResult.
    Ujjwal Gupta
    @ujjwalguptaofficial
    you can customize this using custom error handler. Please have a look at this doc - https://fortjs.info/tutorial/custom-error-handler/
    so when there will be exception, it will be propagated to error handler and then you can return whatever you want.
    Faizal Vasaya
    @faiztherocker
    That's correct.
    But here we are talking about handled exceptions. Will the custom error handler work for handled exceptions ?
    Ujjwal Gupta
    @ujjwalguptaofficial
    nope, please add an issue for this feature request on fortjs github page. Thanks.
    Ujjwal Gupta
    @ujjwalguptaofficial
    ok, will implement asap.
    Faizal Vasaya
    @faiztherocker
    Hey @ujjwalguptaofficial ,
    Could you please create an example of integrating morgan with fortjs.
    I tried it in wall but have been getting 'format deprecate error'.
    Ujjwal Gupta
    @ujjwalguptaofficial
    ok sure @faiztherocker , will implement asap.
    Faizal Vasaya
    @faiztherocker
    Apart from that @ujjwalguptaofficial ,
    It would be great if you could allow the methods of ErrorHandler class to return Promise<HttpResult> rather than Promise<string>. This gives the flexibility to the users to either return a jsonResult or a textResult.
    2 replies
    Faizal Vasaya
    @faiztherocker
    @ujjwalguptaofficial ,
    Can XML requests be not handled using fortjS?
    As soon as I try sending xml body, it complains, Post Data invalid.
    Is there any such validation in the library?
    6 replies
    Faizal Vasaya
    @faiztherocker
    Hey @ujjwalguptaofficial ,
    Is there a way in which we can configure wall only for few urls & methods.
    A scenario when certain headers needs to be appended only for few controllers is where I find this useful.
    A possible workaround is to create a Guard for each route
    3 replies
    Faizal Vasaya
    @faiztherocker
    How do I tweak the server so that it is hosted on https.
    I agreee that it is not a good practice to host node server as https and instead we should opt for https on nginx.
    But I need it for demonstration purposes, hence the question.
    7 replies
    Ujjwal Gupta
    @ujjwalguptaofficial
    @faiztherocker here is doc link for how to configure xml parser - https://fortjs.info/tutorial/xml-parser/
    Faizal Vasaya
    @faiztherocker

    @ujjwalguptaofficial
    Could you please explain the importance of shouldParsePost member in AppOption class ? What does it do internally and what happens if the value is false ?

    Scenario:
    I was trying to validate the validity of the JSON (whether the json is formatted as per the JSON standards ) that is sent as request body to the server, but the framework from somewhere throws Post data invalid when an invalid JSON is shared, how does that work and can I customize the message or detect invalid JSON myself ?

    6 replies
    Also, what are the supported view engines in fortjs? Is it only required for Server Side Rendering ?
    How do I serve an Angular 9 SPA using fortJS ?
    Ujjwal Gupta
    @ujjwalguptaofficial
    shouldParsePost means whether to parse data from http request body or not. If false means post data will be ignored.