Giter Site home page Giter Site logo

ember-demo's Introduction

This application is very incomplete.

Setup

cp Config/core.php.default Config/core.php
cp Config/database.php.default Config/database.php
chmod -R 777 tmp
ln -s /path/to/cake-2.2.3/lib/Cake Lib/Cake

ember-demo's People

Stargazers

Kieran Hall avatar Saleh Souzanchi avatar Mark Thompson avatar Justin Yost avatar

Watchers

Lee Forkenbrock avatar Rick Guyer avatar Justin Yost avatar Donatas Kairys avatar James Cloos avatar Poppix avatar

Forkers

zoghal

ember-demo's Issues

How to set route

Thank you for creating this project ...
I'm trying to configure it but I have some problems, the first thing I do is unzip the project on the root of the local server in order to access it under http://localhost:8888/ember-demo-master/. Then I created the db ember_demo and created the tables as /Config/Schema, and I've also added two other tables that I think are essential:

CREATE TABLE `comment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `emailHash` varchar(255) NOT NULL,
  `website` varchar(255) NOT NULL,
  `body` varchar(255) NOT NULL,
  `modified` varchar(255) NOT NULL,
  `created` varchar(255) NOT NULL,
  `post_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

CREATE TABLE `post` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) NOT NULL,
  `body` varchar(255) NOT NULL,
  `publishedDate` date NOT NULL,
  `modified` date NOT NULL,
  `created` date NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

When I access from the browser to http://localhost:8888/ember-demo-master/ I get the following error Network XHR GET http://localhost:8888/api/posts 404 (Not Found)
How do I set the rules of route? I have to change the route of cakephp in Config/routes.php or something in ember?
The application works but of course it does not save and does not read data from db

thank you very much
ย  Alessandro

Menage comment

Maybe the request may sound silly but I'm pretty new in ember...
I see that the model Comment is defined and linked to Post in application.js and the route of cakephp is set to /api/posts/:post_id/comments but I can't find where this is managed ember: It's possible to manage comments from view?

Thanks a lot
Alessandro

New empty element in posts list

I see that if you click on Create Post and than without write anything in the form you will return to the Posts list, ember create a new empty post element. You'll not see it if you have a post list with h3 tag but you will see if you have a view like this one

<script type="text/x-handlebars" data-template-name="posts">
  <h2>All Posts View</h2>
  <ul>
    {{#each post in controller}}
      <li><a {{action viewPost post href=true}}>{{post.title}}</a></li>
    {{/each}}
  </ul>
</script>

I'm sorry but I do not know how to fix it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.