Giter Club home page Giter Club logo

retain-app's Introduction

Angular 2 Fundamentals

Angular 2 Fundamentals: Retain App

Google Keep remake application for Angular 2 Fundamentals course


Overview

This repo is designed to accompany the free Angular 2 Fundamentals course. It is a step by step curriculum introducing you to Angular 2 by rebuilding Google Keep. All lessons are broken down into individual branches, with a start and solution branch for each lesson. We recommend taking the course which includes the videos and text descriptions for each lesson to maximize your learnings!

Dependencies

  • Node > 6.x
  • npm > 3.x
  • globals (npm install --global)
    • typescript
    • webpack
    • webpack-dev-server
    • tslint

Getting Started

  • Clone or fork this repository
  • run npm install --global typescript webpack webpack-dev-server tslint
  • run npm install
  • run npm start to fire up dev server
  • open browser to http://localhost:3000

Workflow

  • Start the course
  • Watch the video for the current lesson
  • Checkout to the appropriate branch for the lesson
  • Follow along and build the app!

Instructor


Scott Moss

Introduction Video

Angular 2 Fundamentals

retain-app's People

Contributors

adams avatar hendrixer avatar patrickjs avatar somethiiing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

retain-app's Issues

module-10 - 'npm run api' return an error

I cloned a new project from :
[email protected]:AngularClass/retain-app.git

And i did all these commands :

npm install --global typescript webpack webpack-dev-server tslint
npm install
git checkout module-10

Added to package.json:
"api": "angularclass-server --api retain --port 3500"

npm install
And i get this errors:
https://gist.github.com/morwin10/ad977e66748e339dcbcf46705891e7a8

npm run api
And i get this errors:
https://gist.github.com/morwin10/4def17741c944a7074942b4a56482a2f

My package.json looks like this:

{
  "name": "retain",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "webpack --config webpack.spec.ts --progress --color && karma start",
    "start": "webpack-dev-server --inline --colors --progress --display-error-details --display-cached --port 3000  --content-base src",
    "api": "angularclass-server --api retain --port 3500"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@angular/common": "2.0.0-rc.4",
    "@angular/compiler": "2.0.0-rc.4",
    "@angular/core": "2.0.0-rc.4",
    "@angular/forms": "^0.2.0",
    "@angular/http": "2.0.0-rc.4",
    "@angular/platform-browser": "2.0.0-rc.4",
    "@angular/platform-browser-dynamic": "2.0.0-rc.4",
    "@angular/router": "3.0.0-beta.2",
    "@angularclass/api": "^1.1.8",
    "core-js": "^2.4.0",
    "lodash": "^4.13.1",
    "rxjs": "5.0.0-beta.6",
    "zone.js": "^0.6.12"
  },
  "devDependencies": {
    "awesome-typescript-loader": "1.0",
    "css-loader": "^0.23.1",
    "jasmine-core": "^2.4.1",
    "karma": "^1.1.1",
    "karma-chrome-launcher": "^1.0.1",
    "karma-jasmine": "^1.0.2",
    "karma-mocha-reporter": "^2.0.4",
    "raw-loader": "^0.5.1",
    "to-string-loader": "^1.1.4",
    "ts-helpers": "^1.1.1",
    "typescript": "^1.8.10",
    "webpack": "^1.13.1",
    "webpack-dev-server": "^1.14.1"
  }
}

How can i solved this ?

npm-debug.log:
https://gist.github.com/morwin10/cef2bed3b1e85d18d2d2618556de4523

My system:
Windows 7 ultimate 64bit
node v6.4.0
npm v3.10.6

Issues when targeting es5

Hi,

On windows 10 / 64

Cloning the app,
npm install --global typescript webpack webpack-dev-server tslint
npm install
npm start

gives me a bunch of errors:

[at-loader] node_modules\@angular\core\src\facade\lang.d.ts:12:17
    'Map' only refers to a type, but is being used as a value here.

[at-loader] node_modules\@angular\core\src\facade\lang.d.ts:13:17
    'Set' only refers to a type, but is being used as a value here.

[at-loader] node_modules\@types\core-js\index.d.ts:47:36
    Cannot find name 'Iterable'.

[at-loader] node_modules\@types\core-js\index.d.ts:350:48
    Cannot find name 'PropertyKey'.

[at-loader] node_modules\@types\core-js\index.d.ts:351:52
    Cannot find name 'PropertyKey'.

Workaround:

On tsconfig.json
"target": "es5"
"target": "es6"

What should be done to target es5 correctly?

no map error

solved by adding

"lib": ["es2015", "dom"]

to tsconfig.json

Cannot find type definition file for 'chai' error

In the module-1 branch when I run npm install and then npm start I get the following errors in the console:

ERROR in [default] C:\Users\yurid\retain-app\node_modules\rxjs\observable\PairsObservable.d.ts:1:0
Cannot find type definition file for 'chai'.

ERROR in [default] C:\Users\yurid\retain-app\node_modules\rxjs\observable\dom\AjaxObservable.d.ts:1:0
Cannot find type definition file for 'chai'.

They don't seem the be critical thou since the build still completes fine and runs the server too. I still think it would be good to figure out what the issue is and make sure the module builds fine without any errors.

'../@angular/platform-browser-dynamic' no exported member 'bootstrap'

I'm getting an error where TS is not recognizing the exported 'bootstrap' function from platform-browser-dynamic.

ERROR in [default] ../retain-app/src/main.ts:1:9 
Module '"../retain-app/node_modules/@angular/platform-browser-dynamic/index"' has no exported member 'bootstrap'.

While watching the video 'Yo, World!' on AngularClass, I imported bootstrap in main.ts like so:

import { bootstrap } from '@angular/platform-browser-dynamic';

This is the dependency in the package.json:

"@angular/platform-browser-dynamic": "^2.0.0",

Any help is appreciated!

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.