Code Monkey home page Code Monkey logo

cachemoneyapp's Introduction

CacheMoneyApp

Fantasy stock trading single page app

Built with

  • MONGO
  • Express
  • Node
  • Deployed with Heroku
  • Handlebars
  • Jquery

Authors

Chris Bruner, Michelle Srikhundonr, Niilo Smeds, and Tom Timmel

Application Instructions

  • We require that you sign in to use our app with a username and password
  • Once you have an account, you automatically have a portfolio with a $100,000 cash value
  • Use the search tab to research stocks using the ticker
  • On the search tab, you can also purchase and sell stocks in your portfolio
  • On the portfolio tab, you can view your portfolio of stacks, and total value
  • Go to the leaderboard to see how you match up against the best!

Application Structure

  • This application consists of a front-end web page, an express server with RESTful routing and a mongo DB for data persistence (hosted by mlab.com)
  • The front end consists largely of jQuery event listeners that make appropriate AJAX calls to the server
  • The RESTful API consists of the following routes
    • Users - Used for user sign up, sign in and validation: Routes - POST/validate, POST/signup, POST/signin, and DELETE/
    • Portfolios - Used for holding and dealing with users portfolios: Routes - GET/all, GET/leaderboard, GET/, PUT/buy, and PUT/sell
    • Stockstores - Used to hold an object containing each unique stock as key value pair for making our Yahoo API call: Routes - GET/, GET/:id, and POST/
    • YahooAPI - Used for interfacing with the YahooAPI to return data to the front end and to update all portfolios: Routes - GET/dailyUpdate and GET/
  • All delete routes require admin level authentication
  • Portfolio routes require user authentication prior to access

Getting Started

Our GitHub: https://github.com/CacheMoneyDB/CacheMoneyApp

Other libraries

-using yahoo-finance npm package to get stock data with a 15 minute delay -We also update our database of owned stocks 30 minutes after close

Testing

Testing can be performed for our various database data models and end2end routes if npm is installed with the following two commands:

npm test
npm test:watch

The first command will perform all test at once using mocha. The second command will allow you retest your files as changes are made.

Issues

Please feel free to submit issues on our Github!

License

MIT

cachemoneyapp's People

Contributors

quantumarchive avatar nsmeds avatar michellesri avatar tomtimmel 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.