I have some ebooks for beginners to start with, but I don’t have resources which shows how to make RESTful APIs with database that have many-to-many relations like in this example.
Can you please please give me some orientation on solving this problem?
Thanks in advance.
PS: Not sure if I had to post this in the Ember-data category…
I’m very new to Ember as well, so hope I’m correct, but Ember is a client-side framework so you will not use Ember to create a REST API as such, you will only use Ember (or Ember-Data) to consume a REST API created in Rails or PHP or some other server-side technology.
See this post for a full-stack solution that might help with creating the REST API side of things on the server: Ember + PHP with JSON API
I’ll add a bit to @novascape You just need to follow installation instruction for Limoncello Collins which is a sever side (5-10 mins maybe) and install client for this demo server app Limoncello Ember (3 mins probably) and you good to go.
The server and client support
CRUD operations for a few sample data models and Users.
Cross-origin requests (CORS) to API server.
Server login (Basic Auth) and API authentication (JWT Bearer).
@askar It’s a simple demo so pushing notifications is not there. That’s why you don’t see realtimeness.
The errors on the screenshot are weird. It looks like the browser doesn’t send CORS headers and logs its own behavior as and error. I guess it might be an issue related to browser settings.