GithubHelp home page GithubHelp logo

foreverforcode / angular2-2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from abhinavmsra/angular2

0.0 0.0 0.0 45 KB

A basic CRUD Angular2 App

License: MIT License

HTML 7.42% JavaScript 11.00% TypeScript 80.63% CSS 0.95%

angular2-2's Introduction

Intro

This repository is a basic CRUD Angular2 application, with an intention to learn Angular2 along with unit testing in it.

Software Prerequisites

In order to run this project, the following software is required

Git

See Setting Up Git from the GitHub guides.

Node.js and npm

Node.js and Node's package manager, npm, are used for installing dependencies, running the build steps, and running tests.

Getting Started

Begin by cloning the repository.

Use npm to get dependencies:

npm install

Take a look at the src folder. All application and test code are placed here. Typings configuration are also placed in this folder in tsconfig.json.

Build

The build step invokes the TypeScript compiler to create ES5 javascript files and source maps from the .ts files. Run with:

npm run build

You can examine the configuration for the TypeScript compiler in tsconfig.json. The generated files are output in the dist folder which provides as a destination to fetch pure Javascript files and also provides good separation of Typescript and Javascript files.

Serve

The app uses json-server to simulate client-server communication. Follow the GIT Repo to configure it to run on port 3000.

To see the app, run

npm run start

and navigate to localhost:3001.

Test

I used Karma with the Jasmine test framework to run unit tests. Try them with

npm run test

I have also used karma-coverage to generate the coverage report. The corresponding reports can be found under coverage directory.

angular2-2's People

Contributors

0x-r4bbit avatar babylonzeus avatar elecash 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.