Skip to content

fac18/week5-famk-backend-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Week 5 - FAMK - Backend API call page

Travis Build Status codecov

👋 Welcome to CryptoWatch™! Here you can check the current value of the most popular cryptocurrencies in major world currencies. CryptoWatch™ is powered by:

We are:

  • Jamie 🌜
  • Pat 🐈
  • Judith 🐃
  • Gillian 🐧

💾 Installation Guide

  1. Clone this repo

  2. Run npm install in the command line

  3. Run npm start to power up a local server

  4. See site on localhost:3000 in your browser

This project uses an open API, so there is no need to setup an API key.

📐 Planning Process and Architecture

Once we'd decided on our project idea, we decided to draw a diagram of how information would flow through the different files:

  1. The user enters data in the GUI (index.html)
  2. the front-end script (main.js) makes a request to our back-end scripts (via handlers.js etc)
  3. these make a request to the CoinGecko API
  4. the response from CoinGecko is flowed back to the front-end
  5. the front-end script updates the browser

We then made a big ol' to-do list for all the tasks

We also sketched a quick mockup of the page layout

🏁 On your marks, get set, go!

On Day 1:

  • We mobbed the initial set up of the project, including the HTML
  • Judith and Gillian started writing the server/router/handlers side of things...
  • ...while Jamie and Pat set out on the beginnings of the front end scripting including TESTS!

On Day 2:

  • Judith and Pat got stuck into the front-end scripts, in particular the API call to the back end
  • Jamie and Gillian finished the back end parts and wrote some very super super tests
  • Judith and Pat ran into some weird problems with handling the API response and managing the formatting of the timestamp, which caused them some headaches
  • But they managed to get it all up and working, and added some stratospheric DOM manipulation
  • Jamie was the CSS master, with Pat later adding some expert upgrades
  • Jamie and Gillian worked on the bits and pieces to get the project deployed (Travis, Codecov, Heroku)... and got the all important badges!

⚡Visual Design

We decided that our design should be 'modern' to reflect the nature of cryptocurrencies, with a simple colour scheme

We chose a background image of a black and white image shown in binary 0s and 1s to give the idea of computers/cryptography.

🆗 Tests

tests

Our current code coverage status: codecov

The missing 5% is the lines of code which deal with handling server errors (status 500). As far as we know, it is not possible to test for these.

👓 Accessibility

accessibility

😖 Problems

  • Typos!
    facepalm
  • Integrating Travis, Codecov, other testing modules.... lots of bits and pieces that were new for us and we didn't find the documentation super helpful for beginners
  • Some very strange JavaScript behaviour when handling the API request in the front end....

➡️ Future Improvements

  • Add autocomplete functionality when typing cryptocurrency (similar to last week's project)
  • Add ability to reverse conversion: e.g. from USD to Bitcoin

About

💰 Keep tabs on your favourite cryptocurrencies 💰

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •