Skip to content

FACG4/w5-currency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

w5-currency

Build Status

Our project

Single web application that allows users to know exchange rates between currencies and Bitcoin.

File Structure:

Our project has the following file structure:

public:

  • css
    • style.css
  • js
    • dom.js
    • request.js

src:

  • server.js
  • router.js
  • handler.js

test:

  • test-back.js

Planning Phase:

the workflow:

workflow

3 phases:

  • Backend development
  • Backend testing
  • Frontend Development

TDD: Supertest, CI & Test Coverage:

Fake http requests to test the back-end server with supertest.

test('testing form', (t)=>{
  supertest(router)
  .post('/getrate')
  .expect(200)
  .send('{"value":"usd","amount":"213"}')
  .end((error, res)=>{
    if(error) console.log(error);
    else{
      const regex = new RegExp(/\d+/);
      t.equal(regex.test(res.text), true , 'returned value should be a number')
      t.end();
    }
  })
})

Continuous Integration with Travis:

travis

Test Coverage (istanbul):

test coverage

How to run our website:

Heroku link here

  • Locally :
    • Clone the repo .
    • In terminal Run :
      • npm i .
      • npm start .
    • In browser :
      • localhost:3000 .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •