K
K
Klaus Kater2015-04-30 17:57:39
Ember.js
Klaus Kater, 2015-04-30 17:57:39

Ember js without cli, or how to make ember work on third-party backends?

Hello, I've been fighting with Amber for several days already.. Due to ignorance of English, understanding is problematic.
According to the standard instructions for version 1.11 (ember), I launched the server on the Node. But it’s not needed on the node, it’s needed on jang, version 1.10 somehow made friends with jang, but I’m trying to switch to version 11, and in the textbooks everything is set up very tricky, the ember somehow loads the files and searches among them for the controllers he needs, routes, etc.
In total, it is absolutely incomprehensible how to run the application without Node.
The code from the example causes the error Uncaught SyntaxError: Unexpected reserved word (for the word import)
If you have any thoughts on how to unbind ember from Nod, please share. Or at least explain how this same auto-loading of files works. Where does Nod end and Ember begins?

import Ember from 'ember';
import Resolver from 'ember/resolver';
import loadInitializers from 'ember/load-initializers';
import config from './config/environment';

var App;

Ember.MODEL_FACTORY_INJECTIONS = true;

App = Ember.Application.extend({
  modulePrefix: config.modulePrefix,
  podModulePrefix: config.podModulePrefix,
  Resolver: Resolver
});

loadInitializers(App, config.modulePrefix);

export default App;

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stanislav Romanov, 2015-04-30
@kurojneko

The node is needed only for the development and assembly of the project. After the build, you have static files, copy them to the backend where you need.

S
sim3x, 2015-04-30
@sim3x

There are topics on how to use ember and django from 0
www.rkblog.rk.edu.pl/w/p/creating-modern-web-appli...
As I understand it, you need to start www.django-rest-framework.org and slip him an ember.
The task comes down to "how to bind an ember to a restful api"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question