<commit_before>---
title: How to build a TodoMVC application using Ember.js, Express and Postgres
---

 *Let’s start by building the Ember application*

 `ember new emberjs-new`
 
  `cd emberjs-new`
 
  `ember s`

 emberjs-new is the name of the Ember application and it will be served on http://localhost:4200/ 
 “Welcome to Ember” will be displayed in the application.
 
 
 Now, let’s create a route called todo

 `ember g route todo`
 
## This is a h2

### h3, h4, h5 and h6 have the same style.

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptas sed quo atque *perspiciatis*. Eius cum possimus, maxime unde, asperiores neque blanditiis molestiae ipsa odit. **Laboriosam**, error! Ipsa officia magnam at ratione commodi porro nulla consequuntur eum quia nisi officiis cupiditate reprehenderit provident facilis rem, nobis quidem fugiat, et! Tempore maiores reprehenderit laboriosam rerum? 

> This is a blockquote

### Unordered list
- list 1
- list 2
- list 3
- list 4

### Ordered list
1. one
2. two
3. three
4. four<commit_msg>Update 2016-09-19-ember.md<commit_after>---
title: How to build a TodoMVC application using Ember.js, Express and Postgres
---

 **Let’s start by building the Ember application**

 `ember new emberjs-new`
 
  `cd emberjs-new`
 
  `ember s`

 emberjs-new is the name of the Ember application and it will be served on http://localhost:4200/ 
 “Welcome to Ember” will be displayed in the application.
 
 
 Now, let’s create a route called todo

 `ember g route todo`
 
 **Now, let’s create a database(named todo) in PostgreSQL.**
 
`createdb todo` 
 `psql todo`
`todo=# CREATE TABLE items(id SERIAL PRIMARY KEY, text VARCHAR(40) not null, complete BOOLEAN);`

Verify the table creation
`todo=# \d items`
                                 Table "public.items"
  Column  |         Type          |                     Modifiers                      
----------+-----------------------+----------------------------------------------------
 id       | integer               | not null default nextval('items_id_seq'::regclass)
 text     | character varying(40) | not null
 complete | boolean               | 
Indexes:
    "items_pkey" PRIMARY KEY, btree (id)

 
## This is a h2

### h3, h4, h5 and h6 have the same style.

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptas sed quo atque *perspiciatis*. Eius cum possimus, maxime unde, asperiores neque blanditiis molestiae ipsa odit. **Laboriosam**, error! Ipsa officia magnam at ratione commodi porro nulla consequuntur eum quia nisi officiis cupiditate reprehenderit provident facilis rem, nobis quidem fugiat, et! Tempore maiores reprehenderit laboriosam rerum? 

> This is a blockquote

### Unordered list
- list 1
- list 2
- list 3
- list 4

### Ordered list
1. one
2. two
3. three
4. four
{'fraction_non_alphanumeric': 0.10742326909350464, 'fraction_numerical': 0.01641684511063526, 'mean_word_length': 2.7624161073825504, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5771356', 'n_tokens_mistral': 952, 'n_tokens_neox': 867, 'n_words': 360}