# Integrating Ember with Pyramid

**URL:** <https://discuss.emberjs.com/t/integrating-ember-with-pyramid/10708>\
**Category:** Uncategorized\
**Created:** [May 18, 2016, 7:03am UTC](https://discuss.emberjs.com/t/integrating-ember-with-pyramid/10708 "2016-05-18T07:03:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jinko](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@jinko](https://discuss.emberjs.com/u/jinko)\
**Post date:** [May 18, 2016, 7:03am UTC](https://discuss.emberjs.com/t/integrating-ember-with-pyramid/10708/1 "2016-05-18T07:03:44Z")

</div>

I need help integrating emberjs with pyramid. I’ve just finished the basic tutorial and would like to try it out further with doing a single page application with pyramid + pgsql (CRUD) and with pyramid just returning json results.

Some questions that I have are:

1. Where do I put the emberjs in my Pyramid project folder.

2. For retrieving and sending json data, would this link be the appropriate api to follow ( [JSONAPIAdapter - 4.4 - Ember API Documentation](http://emberjs.com/api/data/classes/DS.JSONAPIAdapter.html) ), as I saw many conflicting discussions about ember-data that basically paints ember-data in a negative way.

3. What is the difference between [RESTAdapter - 4.6 - Ember API Documentation](http://emberjs.com/api/data/classes/DS.RESTAdapter.html) and [JSONAPIAdapter - 4.4 - Ember API Documentation](http://emberjs.com/api/data/classes/DS.JSONAPIAdapter.html)?

PS: I have no experience with js mvc except js tool-kits like jQuery and react-native.

Thanks for taking the time to answer simple questions like these.

---

<div class="post-metadata">

**Author:** ![fpauser](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/fpauser/32/13680_2.png) [@fpauser](https://discuss.emberjs.com/u/fpauser)\
**Post date:** [May 18, 2016, 9:15am UTC](https://discuss.emberjs.com/t/integrating-ember-with-pyramid/10708/2 "2016-05-18T09:15:51Z")

</div>

Just a few hints - without any knowledge about Pyramid:

During development use ember-cli’s proxy-parameter to redirect api-requests to your Pyramid-Backend.  
See [The Ember CLI - Introduction - Ember CLI Guides](http://ember-cli.com/user-guide/#using-ember-cli)  
and [Startup — The Pyramid Web Framework v2.0](http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/startup.html#startup)

Terminal 1 (cd to your pyramid-app directory):  
`$ pserve development.ini`  
(or however it is started, notice the port it is being served)

Terminal 2 (cd to your ember-app directory):  
`$ ember server --proxy http://localhost:6543`   
(6543 is an example, use the port of your currently running pyramid-app)

Then open `http://localhost:4200` to see your ember-app. All non-static-content (e.g. calls to api) will be redirected to your running pyramid-server.

If you want to go live, create a build of your Ember-App (again, see [The Ember CLI - Introduction - Ember CLI Guides](http://ember-cli.com/user-guide/#using-ember-cli)) and put it to the static-assets-location that you configured in your pyramid-app.

=\> Static Assets with Pyramid:  
[Static Assets — The Pyramid Web Framework v2.0](http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/assets.html#static-assets-section)

=\> JSON with Pyramid:  
[Renderers — The Pyramid Web Framework v2.0](http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/renderers.html#json-renderer)

* * *

Regarding adapters: Each adapter supports a different JSON-format.  
The RESTAdapter is a very basic adapter and brings its own conventions regarding the json-format (see the docs).  
The JSONAPIAdapter is build around the JSON-API standard, see [http://jsonapi.org](http://jsonapi.org) for docs and examples. This is what most people want.

  
Hope this helps!

---

<div class="post-metadata">

**Author:** ![jinko](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@jinko](https://discuss.emberjs.com/u/jinko)\
**Post date:** [May 18, 2016, 10:11am UTC](https://discuss.emberjs.com/t/integrating-ember-with-pyramid/10708/3 "2016-05-18T10:11:59Z")

</div>

Thanks! That really helps massively
