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

Sample frontend-backend communication #11

Open
oktaal opened this issue Oct 23, 2019 · 7 comments
Open

Sample frontend-backend communication #11

oktaal opened this issue Oct 23, 2019 · 7 comments
Assignees

Comments

@oktaal
Copy link
Contributor

oktaal commented Oct 23, 2019

Have some basic hello-world frontend-backend API call.

@alexhebing alexhebing self-assigned this Oct 24, 2019
@alexhebing
Copy link
Contributor

I will add this in from the testapp.

@alexhebing
Copy link
Contributor

Hmmm, now that I am doing this, it feels wrong. I have to create a DELETEME_example_app in the backend, that has a very simple view, which is not at all representative of what views should / could look like. In this way, the example is most of all an invitation to start off on the wrong foot, and I don't want it to have that effect.

What I have done now is make a service in the frontend that returns some mock data. This should make for a nice example of how to do things (once reviewed and perhaps improved).

Is that sufficient for now @oktaal, or do we really need something at the backend (i.e. a much more detailed example implementing a Viewset and everything?)?

@BeritJanssen
Copy link

Hello all, for khatt I was experimenting with django-restframework and ran into Restangular. Does anyone have experience with this? It looks like it's formatting requests to the backend in a way that may be very compatible with django-rest.

@jgonggrijp
Copy link
Contributor

I don't have experience with it.

@oktaal
Copy link
Contributor Author

oktaal commented Dec 17, 2019

This is very interesting, I think it might be possible to combine it with something like django-typomatic to have the Django models available as interfaces in the Angular frontend.

@BeritJanssen
Copy link

In-te-resting!

@jgonggrijp
Copy link
Contributor

It's a version 0.0.1, though. Maybe a bit early to adopt?

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

4 participants