freeCodeCamp/curriculum/challenges/english/06-information-security-and.../information-security-and-qu.../stock-price-checker.english.md

56 lines
2.2 KiB
Markdown
Raw Normal View History

---
id: 587d824a367417b2b2512c44
title: Stock Price Checker
challengeType: 4
isRequired: true
---
## Description
<section id='description'>
Build a full stack JavaScript app that is functionally similar to this: <a href='https://giant-chronometer.glitch.me/' target='_blank'>https://giant-chronometer.glitch.me/</a>.
Working on this project will involve you writing your code on Glitch on our starter project. After completing this project you can copy your public glitch url (to the homepage of your app) into this screen to test it! Optionally you may choose to write your project on another platform but must be publicly visible for our testing.
Start this project on Glitch using <a href='https://glitch.com/#!/import/github/freeCodeCamp/boilerplate-project-stockchecker/'>this link</a> or clone <a href='https://github.com/freeCodeCamp/boilerplate-project-stockchecker/'>this repository</a> on GitHub! If you use Glitch, remember to save the link to your project somewhere safe!
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: Set the content security policies to only allow loading of scripts and css from your server.
testString: ''
- text: I can GET /api/stock-prices with form data containing a Nasdaq stock ticker and receive back an object stockData.
testString: ''
- text: In stockData, I can see the stock(string, the ticker), price(decimal in string format), and likes(int).
testString: ''
- text: I can also pass along field like as true(boolean) to have my like added to the stock(s). Only 1 like per ip should be accepted.
testString: ''
- text: If I pass along 2 stocks, the return object will be an array with both stock's info. Instead of likes, it will display rel_likes(the difference between the likes on both stocks) on both.
testString: ''
- text: 'A good way to receive current price is the following external API(replacing ''GOOG'' with your stock): https://finance.google.com/finance/info?q=NASDAQ%3aGOOG'
testString: ''
- text: All 5 functional tests are complete and passing.
testString: ''
```
</section>
## Challenge Seed
<section id='challengeSeed'>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>