Set up your own cryptocurrency exchange in 1 hour by n.exchange (BTC ETH TON LIBRA) UPDATED FOR 2020


Hey guys! this is Karolis! I
am a software engineer at n.exchange For those who are not familiar
with us, we are a fairly new (we’ve launched on September 2017) cryptocurrency exchange. we hold zero
balance and we have really strong values of transparency and openness. As a result, as you might already know, we decided to make our front end open source and our
back-end open for anybody to use. You can find our front end on
GitHub. Just copy this URL I will also put it in my description (of the video). as you can see it’s written in react but if you don’t know react don’t worry. For the basic changes for your own exchange, you don’t really have to know react you can just change it’s like changing at HTML but if you want to do any more complicated modifications you might want to take a course in react or learn how Redux and
react work in general. we also have an open back-end: the API which you can find if you go to our website and click on API Docs it will get you to our documentation it’s in ‘apiary’: you can see all the endpoints here so let’s see this one it allows it to get all the currencies
which we exchange or they get the latest ticker which shows you the latest price of a
given pair. So let’s say if you trade Bitcoin for Litecoin it will show you what
each Bitcoin is worth in Litecoin probably, the most interesting endpoint
for you is the referrals endpoint which allows you to set your own
referral fee and get your own referral code I will show you how it works later
but now that we have our front-end open-sourced and ready and we have a back-end
where you can set your own referrals you can set up your own exchange
in less than one hour(I hope) and I will show you how to do it in this tutorial
so let’s get started we will start setting up the exchange by cloning our
front-end repository you can find the link for our GitHub repository in the description I also assume that you know what ‘git’ and what cloning means If you do let’s copy the URL and clone the project. Just like that! while it downloads let me quickly show you what is the basic structure of our project. we have the ‘config’ directory, it contains the basic configuration files for ‘webpack.js’ and for testing. The public folder contains all the publicly accessible assets like favicons index.html file in the scripts we just have three files test build and
I forgot and start so we suggest NPM scripts which you type in your terminal
like NPM start and it will start my project so you are not going to have to
change that at all and then we have this source directory which is where you’re
gonna spend the most of your time most likely we have these actions and
reducers folders which the logic for the redux stuff then we have this components
directory for the react components we have a CSS which has a lot of files
split based on the component and it’s written in SAS CSS but you can always
change that and then we have a fonts images and we have this JavaScript
folder which contains the libraries on which some of the libraries on which the
project depends which are not installed as NPM modules so that’s kind of it
let’s see if the project has been louder downloaded yes it has so the next step
is to download – now the next step is to go into our
repository and install all the dependencies on which the project
depends on it doesn’t have that many it just basically babble for translation
Axios for HTTP 8 transmission like making HTTP requests in a jQuery lo –
moment for dealing with dates just the basic stuff and the redux of course so
it will take some time to install so let me get back to you once that’s done okay
so all the npm modules have been installed and here we can see this node
modules directory so now what we can do is actually start our project and see
how it works so it’s still loading why is it loading okay here we are so it’s
basically what you should see is almost the same as on what you can see if you
go to next change dot IO because it’s basically we it’s it’s the same so you
probably want to delete all these and change about us you might want to change
your background picture change the description the logo you might want to
change your FAQ so let me show you how to do that so in order to change the
content like the About section or images and stuff like that we need to open the
code for our repository so let’s navigate there okay here we go
and as I mentioned previously all the react components are located at the
source and then at the components folder and as you can see there are a lot of
them and I try to name them as descriptive as possible so let’s say
about for the set about this section the component is called about and you can
see right here the content for we don’t have any sophisticated CMS at the moment
content management system we just hard code our content like that and this is
what you can do as well so let’s say instead of an exchange you can put fun
change or something like that and then you can obviously delete all these team
members because we are not going to be a part of your team but you can always
change the name like the title the country and add with social links but
for now I am just going to delete them and that’s it let’s see how that looks
yeah so the same for the FAQ section let’s see here we go there’s a lot of
questions and answers here we can delete any of them which you don’t need and you
can add any of them which you think would be useful so this is how it goes
for a background picture you can go to hero dodge is which is the component
that contains this entire section and the hero image let’s see you can inspect
you can inspect where the image is set it’s set in the hashtag hero and that’s
gonna be contained in the hero SS CSS file and then you can change the
background picture here which is located in the images directory so obviously
you’re gonna need some CSS some HTML skills but this is nothing extraordinary
and nothing that you cannot figure out especially if you have some background
in programming so I think this is all I’m going to show you in
terms of the front end now let’s get started with the back end so in regards
the back end the main thing we want to discuss is how to obtain your own
referral token and how to use that in your own exchange so the way we have
done it for now is that you have to make an order of any size so I’m buying some
ether with Bitcoin execute that order and then if you scroll down you can see
this referral link you can send this link to your friends and if they use it
and make a order later you will get a commission fee but you can also copy
this part so basically anything after ref equals and then if you search for
file config yes you will see this referral code key and at the moment it’s
null but you can set it to your own referral code so now any time back and
makes a call like if you if the front end makes a call to the back end yeah
it will also always add this referral code and then our back end can check if
the referral code is set and if it is it can accumulate your Commission to see
how it works let’s go to referrals yes and here in this part we are checking if
config that referral code is set and if it is we use it we set the header to X
referral token and then we execute our Ajax request you don’t have to
understand how it works but to put it short if you set the referral code in
your configuration file anytime the front-end makes an HTTP request it will
attach this referral talking header now let’s discuss shortly how the
Commission’s work for September since we are newly opened any time anybody new
user makes a transaction you’re gonna get a commission of $5
but after that you will be able to set your own fees on top of our base fees
and the planned base fees at the moment are 0.5% so you can add anything on top
of that and then you will get paid and you will get paid to whatever wallet you
set as a web draw address in your transaction so let’s say if our
transaction was this and you set and you got my referral talking from here and
you set the destination address as this then any time we want to pay out the
Commission we will send it to this address in ether so if you want to get
paid in Bitcoin you should buy some Bitcoin from us so let me receive
address is Bitcoin address I hope that’s clear and if you have any questions let
me know in the comments if this tutorial gets more popular we will make a new
version perhaps more more like advanced more comprehensive we will go through
perhaps more detail in how everything works now the only step left for you to
have your own exchange is to set it up to set up a domain so all you need to do
is set up this entire repository somewhere on the server what you will
have to do is run NPM run build and copy paste the files and that’s it it’s
really really simple so I hope you liked it and I’ll see you next time

10 thoughts on “Set up your own cryptocurrency exchange in 1 hour by n.exchange (BTC ETH TON LIBRA) UPDATED FOR 2020”

  1. if you find any difficulties in creating new and very Own Cryptocurrency exchange platform inbox me on Priyadharshini(@)spiegeltechnologies(dot)com

  2. Nice one! You can also get a ready-made customizable bitcoin exchange website script here—> https://www.cryptoexchangescript.com

  3. This is far away from open source because they "somehow" forgot to mention that you have to pay for license…

  4. This is amazing – I'm seeing that it's opensource? What kind of financials are needed to get it up and running with the most basic settings?

Leave a Reply

Your email address will not be published. Required fields are marked *