This README outlines the details of collaborating on this Ember application. A short introduction of this app could easily go here.
You will need the following things properly installed on your computer.
git clone <repository-url>
this repositorycd day-one-blog
npm install
ember serve
- Visit your app at http://localhost:4200.
Make use of the many generators for code, try ember help generate
for more details
ember test
ember test --server
ember build
(development)ember build --environment production
(production)
Specify what it takes to deploy your app.
ember new day-one-blog
- creates the projectnpm install
- loads dependencies in package.json- Create a new Github repository.
git init
and link github repository to the new project folderember g route about
- creates about route.ember g route contact
- creates contact route.ember g route index
- creates index route.ember install ember-bootstrap
- adds Bootstrap to our project- Copied a bootstrap theme from bootswatch.com and updated application.hbs
- Created posts.json to create default data for database.
ember g model post
- creates post model.ember g model comment
- creates comment model.- Add attributes to both models in app/models folder.
- Create a new Firebase project.
- Set database rules, read/write access to true and Publish the results to save.
- Install the emberfire package using
ember install emberfire
- Copy your apikey information from firebase into config/environment.js
- Import your posts.json file into the firebase DB.
ember g route post
- this creates the post routeember g component post-tile
- creates a component for listing all posts on the website front page.- Update the index.js file to add model data into the page.
- Create a post text helper using
ember g helper trim-string
- Create a simple post.hbs file.
- Change the post route to be dynamic (ie
this.route('post', {path: '/post/:post_id'});
) - refactor links to the specific post pages using this
{{#link-to 'post' post.id}}