Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
d3d555d
save the json file from a query request for stock data
Oct 3, 2016
deb5006
readme file updated with my details and the link to this assignment's…
Oct 3, 2016
e77d419
navbar is up and running, looks like how it should and made modular w…
Oct 3, 2016
f371351
initial setting of the left and right side of the screen
Oct 3, 2016
3ddcf66
styled and got a general skeleton for the date picker
Oct 3, 2016
dfc446a
added lodash and refactored code a bit so that the stocks service pro…
Oct 4, 2016
42456bc
stock price on current date in stocks container is showing, it also s…
Oct 4, 2016
ec2298b
fixed up the stocks symbol table so that 1d, 7d and 30d shows the cur…
Oct 4, 2016
214b39b
currently all stock names and symbols are shown in a set box size whe…
Oct 5, 2016
ab6883a
currently have a check box next to all stock symbols and name and it'…
Oct 5, 2016
54b8bf3
the all and clear buttons are working
Oct 5, 2016
ea46a82
moved the chooseAllSymbols and clearChosenSymbols to the the stocks s…
Oct 5, 2016
d569273
can request selected stock, bit of a bummer though because you cant' …
Oct 5, 2016
4cbc16b
stock price details from retrieved stocks all display properly
Oct 5, 2016
d5289f5
refactored code so that a lot of the results are based on the results…
Oct 5, 2016
bb0136f
did a bit of refactoring of the code so that some cool sliding of the…
Oct 6, 2016
31ebc91
user can now select the from and to dates
Oct 9, 2016
02fa82e
fixed code so that all price differences appear for 1d 7d and 30 days
Oct 9, 2016
6ee2faf
range value goes back to zero once a search is successful
Oct 10, 2016
3275263
removed jquery files from bower components and also remove range slider
Oct 10, 2016
3f9003e
You can filter tthe search results now
Oct 10, 2016
c6f693b
can sort the search results by symbol now
Oct 10, 2016
31dec9c
created and used a dom_manipulator service. Also created a dates_serv…
Oct 10, 2016
f3db5ef
did some major refactoring into services and split up methods into sm…
Oct 10, 2016
a8d2576
made a 'trade' state and the ui-view worked with it's corresponding url
Oct 10, 2016
72f5992
moved the scope of the stocks controller to just the left hand side s…
Oct 10, 2016
059abde
built out a really crappy trade.html to get my bearings
Oct 11, 2016
15bd97e
added error handling for
Oct 11, 2016
5601828
the trade state now takes an id
Oct 11, 2016
e649e2c
created a services for moment and lodash and injected them into the n…
Oct 11, 2016
cc84182
when a user clicks on the trade link next to a stock, the appropriate…
Oct 11, 2016
42cd089
created a stylesheet specifically for the trade.html and things are l…
Oct 11, 2016
75f031b
got the quantity and the cost for trade.html all linked up with scopes
Oct 11, 2016
a4783e3
added the place order button on trade.html but not wired up yet
Oct 11, 2016
dbcfa63
added a UserService which returns the total amount of money the user …
Oct 11, 2016
897aec8
in trade.html it displays the number of quantity of stock the user cu…
Oct 11, 2016
de970a7
created a for the buy/sell select
Oct 11, 2016
bab3095
valid and invalid for buy and sell works
Oct 11, 2016
66ac6c8
returns the cashAvailable on a certain day. Yet to test if it'll work…
Oct 13, 2016
d607e6a
can make a initial purchase
Oct 13, 2016
a910d72
fixed up the _createDatesUpToDate function: when creating dates backw…
Oct 13, 2016
b943ce7
separated out the _process process into it's own funciton
Oct 13, 2016
b5927ac
you can buy stock on the same day now
Oct 14, 2016
82bb280
added a lot comments to user_service and removed a bug which would ha…
Oct 14, 2016
ec36a3f
a fair bit of refactoring a changing up code so that angular watches …
Oct 15, 2016
a08556d
I'm pretty sure the quantity of stock after a purchase works well now
Oct 15, 2016
2425834
fixed up bug that was stopping the the valid or invalid from showing …
Oct 16, 2016
df1adbc
refactoring of code for readability etc
Oct 16, 2016
132dca6
renamed from quantityUserOwns to quantityAvailableToSell
Oct 16, 2016
83fee22
making a purchaseeither sets the unaccounted stock or increases it
Oct 16, 2016
c3bcc64
meh, half way save. unaccountedStock number issues but on its way.
Oct 16, 2016
9e13c1b
selling stock decreases the quantity available, but yet to figure out…
Oct 21, 2016
c2792a8
selling stock increases the cash available but now I have to figure o…
Oct 21, 2016
e2fa2d7
I'm pretty sure the quantity available is correct after trades now
Oct 21, 2016
220c48d
Made a transactions service and moved transaction related functions a…
Oct 26, 2016
911fce6
changed up the look in the search container
Nov 6, 2016
7b15326
wow, I've made so many changes and it's got a long way to go, but the…
Nov 7, 2016
6e93755
finally got the quantities and cash working properly in the porfolio
Nov 8, 2016
02f6218
fairly big changes, moved most of user service to a new portfolio ser…
Nov 14, 2016
a274604
transactions get recorded now in the transactions service
Nov 14, 2016
1646de3
created a transactions controller and template, routing seems to be w…
Nov 15, 2016
5cad81a
added in lazy load and now lazy loading transactiions and trade contr…
Nov 15, 2016
ae642a1
created a mainViewHeader directive so that it can be shared in the di…
Nov 16, 2016
29b9757
dropdown to change views is working now
Nov 16, 2016
650099f
transactions are now being displayed in table format
Nov 16, 2016
32c1ce8
#transactions-page - user can now filter by a search field but needs …
Nov 22, 2016
0fca147
price on transactions is now on currency mode. Also can now order by …
Nov 22, 2016
897bbe3
#transactions - styling for the filter looking a lot better.
Nov 22, 2016
3746904
everything needed to have a portfolio page and a functioning controll…
Nov 22, 2016
006a4d5
#portfolio-page - dropdown to change between views is working
Nov 22, 2016
bd298ca
fail commit - so many changes, but the main thing that's working here…
Dec 4, 2016
9c2846d
#portfolio_service - returnCashAtDate bug fix
Dec 4, 2016
db82734
changed screen size so that it fits everything nw
Dec 4, 2016
2e4126c
#portfolio-page : portfolio filters out unaccountedCash. Return cost …
Dec 4, 2016
87941c3
#portfolio-controller : returnCostBasis is working properly now
Dec 4, 2016
25901b7
had to drastically cut down the portfolio page but at least it works …
Dec 5, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added .DS_Store
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@
Buy low, sell high.

[An AngularJS JavaScript single-page web application using services, directives, ui-router, and good modular code to create a stock portfolio simulator using Yahoo's finance trading data](http://www.vikingcodeschool.com)

By <a href="http://fullstackchang.com">Steven Chang</a> <br>
<a href="https://github.com/Steven-Chang/assignment_fideligard_spa">Git</a> <br>

To Start Server: ruby -run -e httpd . -p 9090
18 changes: 18 additions & 0 deletions bower_components/angular/.bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "angular",
"version": "1.5.8",
"license": "MIT",
"main": "./angular.js",
"ignore": [],
"dependencies": {},
"homepage": "https://github.com/angular/bower-angular",
"_release": "1.5.8",
"_resolution": {
"type": "version",
"tag": "v1.5.8",
"commit": "7e0e546eb6caedbb298c91a9f6bf7de7eeaa4ad2"
},
"_source": "https://github.com/angular/bower-angular.git",
"_target": ">=1.2.0",
"_originalSource": "angular"
}
21 changes: 21 additions & 0 deletions bower_components/angular/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2016 Angular

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
64 changes: 64 additions & 0 deletions bower_components/angular/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# packaged angular

This repo is for distribution on `npm` and `bower`. The source for this module is in the
[main AngularJS repo](https://github.com/angular/angular.js).
Please file issues and pull requests against that repo.

## Install

You can install this package either with `npm` or with `bower`.

### npm

```shell
npm install angular
```

Then add a `<script>` to your `index.html`:

```html
<script src="/node_modules/angular/angular.js"></script>
```

Or `require('angular')` from your code.

### bower

```shell
bower install angular
```

Then add a `<script>` to your `index.html`:

```html
<script src="/bower_components/angular/angular.js"></script>
```

## Documentation

Documentation is available on the
[AngularJS docs site](http://docs.angularjs.org/).

## License

The MIT License

Copyright (c) 2010-2015 Google, Inc. http://angularjs.org

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
21 changes: 21 additions & 0 deletions bower_components/angular/angular-csp.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/* Include this file in your html if you are using the CSP mode. */

@charset "UTF-8";

[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak],
.ng-cloak, .x-ng-cloak,
.ng-hide:not(.ng-hide-animate) {
display: none !important;
}

ng\:form {
display: block;
}

.ng-animate-shim {
visibility:hidden;
}

.ng-anchor {
position:absolute;
}
Loading