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

kajax documentation / examples #165

Closed
sdmcallister opened this issue Nov 25, 2020 · 1 comment
Closed

kajax documentation / examples #165

sdmcallister opened this issue Nov 25, 2020 · 1 comment

Comments

@sdmcallister
Copy link

Would be nice to have simple examples for Kajax and possibly with Jester. Kajax, I assume, is used often in a SPA so I think it is worth adding especially for people who are learning how to create SPA (and with Nim). Some examples may include an authentication example, or populating a view from data in a db like sqlite.

@ajusa
Copy link
Collaborator

ajusa commented May 2, 2021

Here's an example that I put together: https://github.com/ajusa/simple-twitter
Uses kajax to fetch data from Jester using a sqlite DB, which seems to fit what you asked for 😄
Currently the only example within Karax itself is https://github.com/karaxnim/karax/blob/master/experiments/ajaxtest.nim, which is a simple GET request.

Please reopen if you have further questions! Kajax will probably be better documented once Karax is, hopefully that happens soon. Also, see nim-lang/Nim#17373 for a PR that might end up replacing/extending Kajax, as then the stdlib will have a way to do HTTP requests from JS.

@ajusa ajusa closed this as completed May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants