Single web application that allows users to know exchange rates between currencies and Bitcoin.
Our project has the following file structure:
- css
- style.css
- js
- dom.js
- request.js
- server.js
- router.js
- handler.js
- test-back.js
- Backend development
- Backend testing
- Frontend Development
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();
}
})
})
- Locally :
- Clone the repo .
- In terminal Run :
npm i.npm start.
- In browser :
localhost:3000.


