Git Product home page Git Product logo

todo-angular-ngrx's Introduction

CircleCI

Todo app with Angular2 and ngrx/store

A simple Todo app example featuring ngrx/store — RxJS powered state management inspired by Redux for Angular2 apps.

Stack

Getting Started

Recommended

  • node >= 6

Quick Start

$ git clone https://github.com/r-park/todo-angular2-ngrx.git
$ cd todo-angular2-ngrx
$ npm install
$ npm start

Usage

Script Description
npm start Start webpack development server @ localhost:3000 and api server @ localhost:3001
npm run build Lint, test, and build the application to ./target
npm run lint Lint .ts and .js files
npm run lint:js Lint .js files with eslint
npm run lint:ts Lint .ts files with tslint
npm test Run unit tests with Karma and Jasmine
npm run test:watch Run unit tests with Karma and Jasmine; watch for changes to re-run tests

todo-angular-ngrx's People

Contributors

mxchange avatar r-park 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

Watchers

 avatar  avatar  avatar  avatar

todo-angular-ngrx's Issues

npm start not running servers concurrently on some environments

When I run npm start, it seems to load the servers, but chrome says: localhost refused to connect.

I've tested this on 2 Windows (10) devices, on both gitbash and in cygwin.

Tried node versions 6.4, and 7.4

(Now when I just run: npm run server:dev, then it errors about Node sass not supporting windows 64-bit runtime. To solve that last issue, I updated node-sass to 3.10.1, but still when I now run npm start, but the same issue persists.)

Now running server:dev and server:api side by side, in seperate terminals does work.

So this seems to be an issue with the windows environment not correctly parsing the & in the packages.json scripts : start.
You see it running both, but never seems to continue the webpack server:

> [email protected] start C:\Users\UserName\projects\todo-angular2-ngrx
> npm run server:api & npm run server:dev


> [email protected] server:api C:\Users\UserName\projects\todo-angular2-ngrx
> cross-env NODE_ENV=development nodemon -w 'server/*.js' server/main.js

[nodemon] 1.10.2
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: 'server/*.js'
[nodemon] starting `node server/main.js`
info: Server listening @ localhost:3001

When I reverse the order like: "start": "npm run server:dev & npm run server:api" It does run the webpack, but not the API

Replacing the & with | solves this issue.

bug(build): webpack css-loader is removing prefixes

For production builds, css-loader removes desired vendor prefixes during minification. Disable this behavior with inline param.

Before:

{test: /\.scss$/, loader: 'css!postcss!sass'}

After:

{test: /\.scss$/, loader: 'css?-autoprefixer!postcss!sass'}

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.