GithubHelp home page GithubHelp logo

sindhiya1930 / angular2-online-store Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ivandobrovolsky/angular2-online-store

0.0 1.0 0.0 954 KB

JavaScript 12.52% TypeScript 61.06% CSS 10.13% HTML 16.29%

angular2-online-store's Introduction

#angular2-online-store

This is a simple online store of computers implemented using Angular2 to demonstrate how the framework brings the development to the absolutely new level and make the way we create apps more logical, professional, and straightforward. The back end part is done with Node.js stack.

Getting started:

  • Install Node.js(npm comes with it by default) - https://nodejs.org/en/
  • Install MongoDB - https://www.mongodb.org
  • Set up MongoDB connection
  • git clone https://github.com/IvanDobrovolsky/angular2-online-store.git
  • npm install
  • npm run server
  • npm start
  • Open a browser on port 4200(http://localhost:4200)
  • NOTE: Development server is running on port 4200, actual backend is running on port 7777;

Technology/tools stack description:

  • HTML5
  • CSS3
  • Angular2
  • TypeScript
  • RxJS
  • SemanticUI
  • AngularCLI
  • Augury
  • Typings
  • System.js
  • Karma/Jasmine/Protractor
  • NPM
  • Node.js
  • Express.js
  • MongoDB

The following Typescript/ES6/RxJS features and Web APIs were used:

  • Classes
  • Intefaces
  • Generics
  • Enums
  • Decorators
  • Observables
  • Observable subjects
  • RxJS operators: flatMap, map, combineAll
  • HTML5 Notification API

The following Angular2 features were used/implemented:

  • Directives(ngIf, NgClass, NgFor, NgModel)
  • ViewEncapsulation
  • ChangeDetectionStrategy
  • Observable data services
  • Template-Driven forms
  • Model-Drive forms(FormBuilder), Validators
  • Router
  • Pipes (async, json, currency, date)
  • HTTP, Response, RequestMethod enum, Headers
  • Inputs, Outputs
  • Component lifecycle hooks (NgOnInit, NgOnDestroy, NgDoCheck, NgOnChanges)

###The project was refactored to obey Angular styleguide principles: https://angular.io/styleguide


Node.js + Express.js + MongoDB RESTful API:

Method Url Result
GET /api/computers Retrieve all computers
POST /api/computers Create new computer
POST /api/computers/filter Filter computers
GET /api/computers/:id Retrieve a computer by its id
PUT /api/computers/:id Update an existing computer
DELETE /api/computers/:id Delete an existing computer
GET /api/brands Retrieve all computer brand names

What next? Adding new features, refactoring and improving performance...

  • Authentication
  • Maximum test coverage
  • Pagination
  • Performance enhancement
  • Animation
  • Caching
  • Server-side/Web-worker rendering
  • Security

angular2-online-store's People

Contributors

ivandobrovolsky avatar angular-cli avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.