Coder Social home page Coder Social logo

vsternbach / tasks-playground Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 1.0 20 KB

A sample task manager application

Home Page: https://tasks-162620.firebaseapp.com

TypeScript 59.61% HTML 24.75% CSS 3.83% JavaScript 11.81%
typescript angularjs webpack angularjs-typescript-webpack gapi decorators async-await firebase travis-ci component-architecture

tasks-playground's Introduction

tasks-playground

Build Status bitHound Overall Score

A sample tasks manager application to demonstrate the use of angular-ts-decorators library. It will serve as a playground for future porting of it to angular 4, react and maybe vue.js frameworks for self-learning and as an experiment to demonstrate the process of migration of angularjs applications to the most recent and popular frameworks. Future plans are to make application available as mobile and desktop application using native script/react-native and electron.

Some highlights of features and technologies used in the project:

  • written in typescript 2.2 using angularjs 1.6 and component based architecture
  • uses Google Tasks API with OAuth 2 authentication
  • uses Material Design Lite for styling
  • uses new async/await syntax in asynchronous code
  • project based on angularjs-typescript-webpack boilerplate
  • has integration with Travis CI for testing(yet to be implemented) and deployment to firebase

You can see the working demo of the project at https://tasks-162620.firebaseapp.com

Getting Started

To get you started you can simply clone the repository.

Running the App during Development

npm run start will run dev build task with watch and serve the application on http://localhost:3000/.

Building and running the App for Production

To build the application for production just run npm build, it creates dist directory that have the production optimized build.

tasks-playground's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

andy2577

tasks-playground's Issues

Selector as undefined

sorry wrongly posted in this repo
I cloned this repo. The routing is not happening for "view1" or "view2". On debugging the selector is coming as 'undefined'

image

Routing doesn't work

In main.ts:28, the code attempts to get the state.component.selector property, which doesn't (any longer?) exist. I worked around this by doing the following, but it sure would be nice if the workaround wasn't needed. (And save people a LOT of hours!)

import "reflect-metadata";
...
export interface IComponentState extends ng.ui.IState {
    componentClass: any;
}
...
const routes: IComponentState[] = [
    { name: "home", url: "/", componentClass: RootComponent }
];
...
    private static provideStates(states: IComponentState[], $stateProvider: ng.ui.IStateProvider) {
        states.map((config) => {

            // Set component name by reflecting metadata from component's @Component decorator
            const componentName = Reflect.getMetadata("custom:name", config.componentClass);
            config.component = componentName;
            delete config.componentClass;

            return { name: config.name, config };
        }).forEach(state => $stateProvider.state(state.name, state.config));
    }

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.