HomeРазвлеченияRelated VideosMore From: m1xolyd1an

Bitcoin NodeJS Part 5 - Build a Converter App with EJS & Bootstrap

81 ratings | 4871 views
Fifth video in the Bitcoin NodeJS series. We go into how to create dynamic pages and templating with EJS. We'll add a simple style with bootstrapcdn.com. Then we'll create a BTC USD conversion app.
Html code for embedding videos on your blog
Text Comments (26)
Long Field (5 months ago)
request({ url:"https://wex.nz/api/3/ticker/btc_usd", json: true }, function(error,response){ btcPrice = JSON.stringify(response.body.btc_usd.last); console.log("price=" + btcPrice); }); This works for me
tech nerd (2 months ago)
The URL has been seized by the us police
thécestral (2 months ago)
Here's the API of CoinMarketCap. Just in case :) https://api.coinmarketcap.com/v2/ticker/1/
MATH_GOD (4 months ago)
Awesome videos!!!
Yasin Shuman (5 months ago)
hey, love the video but think i have a mistake in my ejs for converter. it isnt working for me here is a pastebin https://pastebin.com/bv2f3Bet i think my problem is when i set the value of market_price
Phil Ellett (7 months ago)
Great tutorials .. My suggestion would be to install toFixed (npm install toFixed --save), create a var price2d using "var price2d = toFixed(price, 2)l;"" and set lastPrice as price2d. This way initial price is also set to 2 digits but with no loss of accuracy in calculations. Will keep working through these ... keep up the good work.
m1xolyd1an (7 months ago)
+Phil Ellett thanks, Ive uses tofixes in prior videos but havent had to add it as a module... does it behave differently than the native toFixed shipped with javascript?
Shankar Kn (8 months ago)
can u tell me how to exchange i mean indian currency to bitcoin i want to develop ripple & bitcoin exchange from INR
Chris Cawley (11 months ago)
For some reason my input fields refuse to update, it's like it's ignoring the script tags in my ejs, can you spot anything wrong here? https://ghostbin.com/paste/hyzt9
m1xolyd1an (11 months ago)
Chris Cawley what I'm seeing is you have price defined inside of a function. Can you put your request as a callback function and the price output as the callback, then call the function inside the converter render?
Chris Cawley (11 months ago)
Thanks for looking! Here is my app.js file: https://ghostbin.com/paste/9jnsa I had to obviously change the BTC-e API since they got shut down, but that value is being pulled correctly for the tab title.
m1xolyd1an (11 months ago)
Hmm looking it over but I don't see any issues off the bat. Perhaps the issue is with your app.js instead? What's the source for lastPrice?
Jean Cavallera (1 year ago)
the domain http://btc-e.com is not available anymore. Any idea of domain where I can do an API call to a pull the btc price ? Otherwise great tutorials !!!
TheSkypto (10 months ago)
i also tried with https://blockchain.info/ticker and it worked for me
m1xolyd1an (1 year ago)
Bitstamp https://www.bitstamp.net/api/v2/ticker/BTCUSD
Boris Gern (1 year ago)
great tutorial
kunleofafrica (1 year ago)
Great video. How can I call a node js url from php curl? It returns an empty feedback when I tried it. Dunno if you can help with video on this. Thanks
Bruno Silva (1 year ago)
nice nice man hu hu =D
None NAN (1 year ago)
+m1xolyd1an dude im a such a fan. keep going
cachaco negro (1 year ago)
Hello m1xolyd1 waiting every week the video exelentes tutoriales everything in march
cachaco negro (1 year ago)
Waiting for next year to continue
cachaco negro (1 year ago)
What a good choice with the excellent family that you enjoy and that Jesus Christ will keep you and bless you to yours
m1xolyd1an (1 year ago)
+cachaco negro thanks, I'll be skipping this week's video due to the holidays and family.
Nice video m1xolyd1an, have you ever using bitcoin rpc, can you create turtorial about using bitcoin RPC without using blockchain.info API, Thanks you
Thanks you so much for your reply. i never work with php but happy to see that. i will try convert to ruby rails. Thanks m1xolyd1an
m1xolyd1an (1 year ago)
I haven't done one with nodejs yet, but I did do a series for using bitcoin rpc with PHP. https://www.youtube.com/watch?v=cMM-t7azzJE

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.
The acryptoa portion of the word denotes the cryptography used to ensure the blockchain, and the acurrencya portion of the word denotes the ability to exchange the tokens for goods and solutions. The absolute pacifism part is assumed I think, in spite of someone having the capability to locate some examples where it may appear otherwise. What you share is is an instance of absolute terror onto people who ought to be fought if it may be. The numbers won`t be good. Today they are much higher.
You`ll reap the benefits for the very long haul if you stick with your advertising and marketing guns. There are certain sorts of offerings that have special exemptions from the full blown registration practice. The range is hard to specify, taking into consideration the diversity in choices. According to the provision, the scope of the very first transaction in NEPSE is within three times the provider`s book value.
When the project is completed, the tokens value is probably going to increase because there is currently a tangible item, instead of simply an idea. After all, research demonstrates that clients use their networks to choose consultants more than every other method, and they, without doubt, know somebody who knows you. Getting knowledge in the region of property investment is insufficient. You may observe I didn`t speak about a few skills. After all, in case you have a saleable skill, it`s a simple business to enter.
A collection company cannot collect any sum of money that isn`t permitted by law or by agreement. Furthermore, it would be required to show the terms of that agreement in court. It is not surprising that consulting is attractive to numerous individuals who wish to launch a company. You also have to know the way the corporation will account for the exchanging of tokens. Starting a public company is a complicated and costly undertaking. Doing so makes a contract that might be binding. If you haven`t signed a contract with the collection business, you owe them nothing.
Inside my view there is just one house, and all of us live in it. Property should not be damaged. In addition, should the property is well-connected to the public transport, then it aids in giving a good advantage, particularly for the middle-class family.
As previously mentioned, the majority of the above coins are offered for purchase direct from the Royal Mint. Offerings where the total raised is less than one million dollars come beneath a special procedure that is far less complicated. Once more, money well spent. Another method is to commit your own money. It s pretty obvious to anybody who reads the accounts. You DON`T need to make a new account.
Enterprises and entire countries are now able to block Tor traffic without any issues. Nobody is suggesting that it isn`t the work of liberal Whites to oppose what`s wrong. To the contrary, the investments with the period of time of over five years are called as long-term investments. Original investors can then opt to sell their tokens to earn a significant profit.