aim's People
Forkers
benlesh robwormald jimthedev itproto fork2test xgrommx rasmustg antoinecellier born2net finfort arcseldon mckennatim longlivechief hitesh97 ngonam22 holpit daonhan jonbonraki danoph cipengxu hbweb joshwiens sliverb marcusdb dcupretiaim's Issues
Create login component
Create a component that authenticates with Github, and broadcasts success and failure events.
@reactivex bundled 2 times
@ReactiveX is included 2 times in the WebPack: once from the "root" npm dependency and second time from ng2 transitive dependencies. Not big deal for demos but I guess people might be using this (and other) projects as starter kits, so would be good to fix.
Unfortunately my WebPack-foo is pretty weak so I'm not sure how to fix it atm.
Oh, and BTW: is there is any particular reason for explicitly declaring all the ng2 transitive dependencies? (zone, reflect-metadata, @ReactiveX)? This might be actually a reason for those things being bundled twice.
Add tests
Socket sends all previous messages on retry
Hi!
We are using this web socket implementation. On page load everything is correct and we start sending messages etc. When we loose connection and it gets back again the websocket sends ALL previous messages directly (the messageQueue is empty).
I've commented out this section and now it just creates a new connection without sending anything.
.retryWhen(errors => errors.switchMap(err => {
// update the connection state to let it know we're retrying
this.connectionState.next(ConnectionStates.RETRYING);
if(navigator.onLine) {
// if we have a network connection, try again in 3 seconds
return Observable.timer(3000);
} else {
// if we're offline, so wait for an online event.
return Observable.fromEvent(window, 'online').take(1);
}
}));
How can we make this not send old messages? We still want the retryWhen code since we need to do stuff when we gets back online.
Thanks
Implement recentValues scan observable to show most recent 20 price values of a ticker
Make the app look nicer
error TS2307: Cannot find module 'express'
Not familiar with typescript as of yet, perhaps I should just create a vanilla node express server and use that. Using a windows 7 box.
after install on
npm run server
ERROR in c:\wamp\www\ng2\aim\server\stock_server.ts
(4,26): error TS2307: Cannot find module 'express'.
the express node_module is there
Create chat list component
List of active conversations. Should have conversations with unread messages with bold text and a number indicator.
Potentially incorporate router into application
Implement app component
App component should show login component if user is not already logged in.
If user is logged in, the component should register the user with the WebSocket service #3.
service.registerUser({token: 'GITHUB_AUTH_TOKEN', username: 'jeffbcross});
Implement graph for stock performance
Create a component that implements a bar chart based on an array of data set as a property on the component. Perhaps wrap highcharts?
Dependency-Injectify the TickerService
Make server less volatile in pricing randomness
feat(http): create separate service for http requests
The service should:
- Take in a partial input value to search for matching symbols
- Make the request to the ticker service
- Unwrap the response to return a list of ticker objects
Add code comments throughout to explain RxJS-related bits
Dependency-Injectify WebSocket service
Create a socket-based service to manage conversations
Needs to manage connection with a websocket that will send and receive messages with the app.
Needs to implement multiplexing logic to use a single websocket subscription for many conversations.
Needs to handle reconnecting gracefully.
Needs to support creation of new conversations.
Potential API:
enum ConnectionStates {CONNECTED, CONNECTING, WAITING_TO_RETRY}
interface Message {
id?:string;
channel: string;
otherUser: string;
}
interface Channel {
id?:string;
// List of github usernames
partcipants: List<string>;
}
interface User {
username: string;
}
interface SelfUser extends User {
token: string;
}
class ChatService {
messages: Observable<Message>;
connectionState: Observable<ConnectionStates>;
activeChannels: Observable<List<Channel>>;
createChannel(user:User):void {}
registerUser(user:SelfUser):void {}
}
S2307: Cannot find module 'express'.
When tryig to run getting the below error. Please let me know what needs to be changed
ERROR in C:\Development\Angular\aim\server\stock_server.ts
(4,26): error TS2307: Cannot find module 'express'.
Create typeahead component
Create a typeahead component to fetch a list of usernames from the Github API.
Consider adding intermittent failure to http service
Something like 10% so we could have a retry(3) and see occasional errors, but usually still succeed.
Bonus points: add a good user experience for error handling in complete failures.
Implement chat socket backend
Fix typescript on the serve so compiler will stop complaining
Add code comments throughout to explain Angular-related bits (pipe, forms, components, etc)
fix(graph): if symbol is removed and added again, an additional chart is displayed on the page.
I end up with n charts on the page, where n is the number of how many times I've selected that symbol.
CC @robwormald
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.