Skip to content

sandnap/contacts-ember-hapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Contacts Application

An application developed as part of a tutorial series on my blog at Optimal Thoughts. The tutorial is a work in progress so check back often for updates.

This application makes use of Ember CLI on the front end with Hapi REST services; Bookshelf ORM with Knex.js for building queries, managing DB migrations, and seed data; and Sqlite3 for persistence.

Prerequisites

Installation

  • Clone this project or download the archive file and unzip it

  • In a terminal navigate to the server directory and run npm install

  • In a terminal navigate to the client directory and run npm install followed by bower install

  • Install the Knex CLI by executing the following commands in the server directory

    $ npm install knex -g

  • Run the database migrations from the server directory

    $ knex migrate:latest

  • Insert seed data

    $ knex seed:run

Starting Hapi

In a terminal execute the following from within the server directory

		$ node server

Starting Ember CLI

In a terminal execute the following from within the client directory

		$ ember server -proxy http://localhost:3000/api

You can view the application at http://localhost:4200/contacts and the Ember CLI tests at http://localhost:4200/tests. To run the Hapi API tests run npm test while in the server directory.

About

An example application using Ember CLI and Hapi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages