https://github.com/warapitiya/phonebook
Phone book application
https://github.com/warapitiya/phonebook
Last synced: about 2 months ago
JSON representation
Phone book application
- Host: GitHub
- URL: https://github.com/warapitiya/phonebook
- Owner: warapitiya
- License: mit
- Created: 2016-03-16T11:30:16.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-16T13:36:18.000Z (about 9 years ago)
- Last Synced: 2025-02-15T11:49:52.446Z (4 months ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Phonebook
Phone book applicationBuild
-------------#### Clone
```sh
git clone https://github.com/warapitiya/phonebook.git
```#### Move and install
```sh
cd phonebook/
bower install & npm install
```## Mongodb Database Setup
#### Database start (maybe in a new terminal window)
```sh
mongod --dbpath $YOUR_PATH_TO_DB
```#### Import database
```sh
cd phonebook/
mongoimport -d Phonebook -c contacts database_backup/contacts.json
```## Start
```sh
npm start
```Packages
-------------#### Bower
- angular - (1.5.0)
- angular-animate
- jquery
- angular-ui-router
- bootstrap
- angular-bootstrap
- lodash
- font-awesome
- angular-xeditable
#### NPM
- ExpressJS
- mongoose
Clarifications
-------------#### Why use dataService factory($http) over $resource
- Data Service factory is useful because we can write too many custom routes rather than $resource. Yes $resource supports custom endpoints but it's too much complicated to maintain in large systems.