Skip to content

Sample Angular 1.5 application for Hack Your Future

License

Notifications You must be signed in to change notification settings

remarcmij/hyf-people

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hyf-people - a sample Angular JS 1.5 app for Hack Your Future

This application demonstrates some key features of Angular JS 1.5 as taught during the Hack Your Future, Amsterdam programme. Specifically, the following are areas covered:

  • Angular 1.5 components
  • services
  • ui-router v1.x, exploiting the new 'route to component' and 'resolve bindings'
  • separation of functionality/feature areas into modules

The sample application focusses on the front-end. In order to demonstrate how to get data from a back-end using $http, the json-server npm package is used for providing a simple API on the basis of a json data file.

User Requirements

The application is developed to meet the following (hypothetical) user requirements:

  1. The application should show a list of Hack Your Future staff, mentors and students, with their name, role and picture (avatar).

  2. When clicking on a list item, a detail screen should be shown listing the details as under (1), as well as a short bio and clickable links to the person's LinkedIn and/or Twitter accounts.

  3. The application should look good on mobile devices as well as on desktops.

In addition the IT project manager in charge has ordained these technical demands:

  1. The Angular JS 1 guidelines from John Papa as published https://github.com/johnpapa/angular-styleguide/blob/master/a1/README.md should be adhered to.

  2. Use Angular Material for the UI components.

Getting started

  1. Clone the project from GitHub to a local project folder on your development machine.

  2. Install json-server as a global npm package:

    npm install -g json-server

  3. Type the following command to start the back-end server:

    npm run json-server

  4. Open a second command window in the project folder and type:

    npm start

    This should install all the required files and then start up a local http server at port 8000.

  5. Finally, point your browser to localhost:8080.

Ideas for experimentation

  1. Add a feature to filter the list by user role (staff, mentor, student)
  2. Add a feature to search the list.
  3. Add a feature to sort the list by first name or last name.

Addtional challenges

  1. Add a new feature area to show 'projects' and enable people to be linked to projects, in specific roles (e.g. 'developer', 'user', 'project manager' etc)
  2. Replace the back-end by a custom Node/Express/MongDB server.
  3. Replace the back-end by using a FireBase database.

About

Sample Angular 1.5 application for Hack Your Future

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published