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

Working Example #283

Open
ashishtilara opened this issue Jul 17, 2017 · 4 comments
Open

Working Example #283

ashishtilara opened this issue Jul 17, 2017 · 4 comments

Comments

@ashishtilara
Copy link

Hi,

Where can I find a full working example of Fortune.js with one of the data-adapters.

cheers.

@gr0uch
Copy link
Member

gr0uch commented Jul 17, 2017

Most users are using it in closed source projects.

I built a toy project for a non-trivial example, though it is a little out of date now.

There's also a more complete app that's open sourced.

@jamesplease
Copy link
Member

Hi @ashishtilara ! Are you having a specific issue with any one part of Fortune? If you are, let us know and we can try to help out with the specific question.

One thing I find useful is to start off with the memory adapter, which is what you get out of the box. Once you see how that works, adding in one of the other adapters (like Postgres) may be more straightforward.

Let me know if that helps!

@ashishtilara
Copy link
Author

Thank you @daliwali.

@jmeas I am about to start a new project and was considering using fortune in AWS lambda functions with API Gateway facilitating http like environment. Also currently my database is tied with MySQL so I might have to write MySQL adapter, is there any reason why it wasn't implemented along with other adapters, I mean was there any limitations?

Thank you for the help guys..! 😃

@gr0uch
Copy link
Member

gr0uch commented Jul 18, 2017

There's no MySQL adapter because MySQL doesn't support array columns. Fortune.js makes extensive use of array types, especially for relationships. Besides that, there may be other Postgres features that MySQL doesn't have, such as JSONB type.

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

No branches or pull requests

3 participants