Quickstart
Napse is still in early stage. You can only run it manually for now.
TL - DR
make setup
-
make up
-
Clone django-napse repository
- Run
tests/test_app/setup_secrets.sh
and fill insecrets.json
file make up
- Get
master_key
insecrets.json
file - Add localhost server into Napse's desktop app (with the
master_key
asAPI Token
)
Prerequisites¶
Install nvm¶
To install nvm, download and install the nvm script from the project's GitHub page:
Install Node.js¶
Now, you can install Node.js. The following command installs Node.js latest version :
Install yarn¶
Yarn is a Node package manager. Install it by running these commands
Run the desktop application¶
First, you need to install all dependencies.
Then, you can run the application.
Yeah! Your desktop application is running. But you can't do anything with it for now. You need to run the server.
The server¶
The heart of Napse is the server. It's django-napse
Setup the server¶
Clone the project from github¶
First clone the repository to your local machine:
Build the virtual environment:¶
To setup the virtual environment, you can run the command:
Or run manually the following script depending on your operating system:Setup initial exchange accounts¶
To make full use of the project, we recommend that you fill in the API keys of at least one exchange (see django-napse documentation for more details).
At tests/test_app/
, build a secret.json
file (or run the ./setup_secrets.sh
script). Here is an exemple with Binance:
{
"Exchange Accounts": {
"Binance EA_NAME": {
"exchange": "BINANCE", # Name of your exchange (BINANCE, DYDX, ...)
"testing": true,
"public_key": "YOUR_PUBLIC_KEY",
"private_key": "YOUR_PRIVATE_KEY"
}
}
}
You can create this file with the commande:
Tip
Exchange API keys are required to communicate with the exchange. However, they are not required to test the application.
Run the server¶
Connect the desktop app to the server¶
You've come this far! Congratulations!
Now all you have to do is the easy part:
- Retrieve your
master_key
from thesecrets.json
file - Go to your desktop application
- Click on
servers
in the top right-hand corner, then+ add new
. - Enter your
master_key
in theAPI Token
field. - Click on
Connect
.
That's it ! You can now use Napse !