Welcome to SaTT Webservice endpoint, this backend provides webservice to SaTT WebWallet and advertising campaign manager : Wallet
It provides :
- Masterseed HD Wallet management for SaTT and other main cryptos.
- Transaction management
- Advertising campaign management
This projetct is build in JavaScript
for NodeJS
and these main npm
modules :
To run SaTT API webservice Provider you will need NodeJS 12.0+
and npm
Package manager.
-
MongoDB database connection
- Install the driver as a dependency:
npm install mongodb
For complete MongoDB installation instructions, see the manual.
- Connect to MongoDB via URI
The standard MongoDB URI connection scheme has the form:
Update your database connection details in the .env file.
mongodb://[username:password@]host1[:port1][,...hostN[:portN]]][/[database][?options]]
- Install the driver as a dependency:
-
Web3 service provider with Geth,openerhereum or Infura SaaS
-
PM2 Process Manager, you can install it a described below:
npm install pm2 -g
-
Clone the repository:
git clone https://github.com/Atayen/node-satt.git
-
Edit conf/config.js file
-
Register and start PM2 service:
pm2 start app.js
To launch the test part please run the following command line:
npm run test
After you run the project, you can navigate to https://localhost:3015/docs to see the full list of available endpoints.
The folder structure of this app is explained below:
Name | Description |
---|---|
node_modules | Contains all npm dependencies |
helpers | Contains all requirements and the cron job actions |
manager | Contains all the definitions of oracles |
conf | Contains all configuration for the blockChain part |
controllers | Controllers define functions to serve various express routes |
routes | Contain all express routes, separated by module/area of application |
middlewares | Express middlewares which process the incoming requests before handling them down to the routes |
routes | Contain all express routes, separated by module/area of application |
test | Contain all unit test cases |
app.js | Entry point to express app |
package.json | Contains npm dependencies as well as the scripts |
Please read the documentaion for more information.
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated. ✌️🎉
Valuable contributions will be 💰 rewarded 💰. We are able to offer an important and well studied amount converted in our cryptocrruency SaTT according to the complexity of the issue. Rewards are released within one week of the pull request being merged. All rewards are at editorial discretion.
Please see CONTRIBUTING.md for more information on what we're looking for and how to get started.
Distributed under the MIT License. See LICENSE for more information.
Please do not hesitate to contact us at [email protected] if you have any further questions or observations. 🙏 ✏️