Skip to content

gokdayi/Interview-Sample-App

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interview-Sample-App

Architecture

This is an AngularJS application, it also contains some server-side node.js stuff to serve zipcode data.

  • Angular app is as :

    • Scripts/app.js defines the angular app
    • mainController and detailController are the controllers of the 2 routes defined in app.js
    • zipService stands as an ng factory, contains functions which makes http requests to get specific datas and also returns promises
    • Views/*.html files are the 2 different partial pages used for 2 routes
  • Server side is as :

    • server-app folder contains the server side stuff
      • data.json contains all zipcodes of the Dallas city
      • dataService.js contains a simple restify app that reads data from the json file and stands as a RESTful service to serve that data
    • You need to run the restify app so that the angular app can get data from the backend service, to do this, cd into server-app folder, type node dataService.js on your cli
  • Other things you should know :

    • ignored node_modules folder and it's contents that you'll need to run the app, to install these, type npm install on your cli
    • index.html is the entry point of the app.

Other Third Party Stuff

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 54.0%
  • HTML 46.0%