Giter Site home page Giter Site logo

meteor-starter's Introduction

Meteor-Starter for angular2

1.安装Meteor

Linux或Mac命令行安装: $ curl https://install.meteor.com/ | sh Windows安装: https://www.meteor.com/install

2.创建项目

meteor create socially

3.运行项目

cd socially => meteor => http://localhost:3000/访问

4.初始化package.json

npm init npm install angular2-meteor --save npm install angular2-meteor-auto-bootstrap --save

5.安装typescript\typings

npm install typings typescript -g --save 初化化tsconfig.json=>typescript init 配置tsconfig.json { "compilerOptions": { "experimentalDecorators": true, "module": "commonjs", "target": "es5", "isolatedModules": false, "moduleResolution": "node", "emitDecoratorMetadata": true, "removeComments": false, "noImplicitAny": false, "sourceMap": true }, "files": [ "typings/party.d.ts", "typings/main.d.ts", "typings/angular2-meteor/angular2-meteor.d.ts" ] }

初始化typings.json => typings init npm install typings -g typings install es6-promise --save typings install es6-shim --ambient --save typings install meteor --ambient --save(-S)

6.添加 Angular2

meteor add angular2-compilers meteor remove blaze-html-templates meteor npm install --save angular2-meteor meteor npm install --save meteor-node-stubs meteor npm install angular2-meteor-auto-bootstrap --save

meteor create meteor-angular2-starter //创建 meteor run //运行 npm init //初始化package.json

添加tsconfig.ts: { "compilerOptions": { "experimentalDecorators": true, "module": "commonjs", "target": "es5", "isolatedModules": false, "moduleResolution": "node", "emitDecoratorMetadata": true, "removeComments": false, "noImplicitAny": false, "sourceMap": true } }

meteor add angular2-compilers //添加NG2编译器 meteor npm install --save angular2-meteor meteor npm install --save meteor-node-stubs meteor npm install angular2-meteor-auto-bootstrap --save meteor remove blaze-html-templates

npm install typings -g typings install es6-promise typings install es6-shim --ambient typings install meteor --ambient

meteor-starter's People

Contributors

randyboy avatar

Watchers

James Cloos avatar  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.