Giter Club home page Giter Club logo

server's Introduction

JSEcoin Node

The JSEcoin node (jsenode.js) runs as part of the JSEcoin peer to peer network.

Local Installation

npm install
npm i -g node-gyp
npm i -g forever
git init
git remote add jsecoin https://github.com/JSEcoin/server.git
git fetch jsecoin
git pull jsecoin master
npm install
mkdir logs/
mkdir data/

node jsenode.js -s localhost -n jsetestnet

Testnet Installation

npm install
npm i -g node-gyp
npm i -g forever
git init
git remote add jsecoin https://github.com/JSEcoin/server.git
git fetch jsecoin
git pull jsecoin master
npm install
mkdir logs/
mkdir data/

node --max-old-space-size=3000 datastore.js -p 82 -t local
node --max-old-space-size=3000 datastore.js -p 83 -t local
node controller.js -t local -d http://localhost:82 -e http://localhost:83
node jsenode.js -t local -s localhost -p 81 -n jimv18 -d http://localhost:82 -e http://localhost:83 -m 0

npm run test
node jsenode.js -d http://localhost:82 -e http://localhost:83 -m 0 -i
http://localhost/jsecoin/github/v1platform/testnet.html?testnet=local

Production Installation

Before you npm install the server directory you need to add node-gyp

apt update
apt upgrade -y
apt install node.js -y
apt install npm -y
npm i -g node-gyp
npm i -g forever
git init
git remote add jsecoin https://github.com/JSEcoin/server.git
git fetch jsecoin
git pull jsecoin master
npm install
mkdir logs/
mkdir data/
chmod 777 logs
chmod 777 data

ES Lint Continuous:- ForEach ($number in 1..999999 ) { eslint *.js; eslint */*.js; sleep 10; $number; }


Crontab

Load Servers

@reboot cd /root && /usr/local/bin/forever -c "node --max-old-space-size=3000" start jsenode.js -s load.jsecoin.com -n load4 -m 0 &
35 16 * * * /usr/local/bin/forever restartall

Platform Servers

@reboot cd /root && /usr/local/bin/forever -c "node --max-old-space-size=3000" start jsenode.js -s server.jsecoin.com -n server1 -m 0 &
5 17 * * * /usr/local/bin/forever restartall

Controller

@reboot cd /root && /usr/local/bin/forever -c "node --max-old-space-size=3000" start controller.js &
@reboot cd /root/tools && /usr/local/bin/forever start purgebkups.js &
@reboot cd /root/tools && /usr/local/bin/forever start systemchecksms.js &

Datastore

@reboot cd /root && /usr/local/bin/forever -c "node --max-old-space-size=10000" start datastore.js -f blockChain &

AdX

@reboot cd /var/www && /usr/local/bin/forever -c "node --max-old-space-size=8000" start datastore.js -p 81 -f adx &
@reboot cd /var/www && /usr/local/bin/forever -c "node --max-old-space-size=3000" start adx.js &

Bug Bounty

This is an initial push alot of cleanup is still required if you spot an issue please report it and if we consider it a major issue we will credit your account as part of our bug bounty offering. Bug Bounty Info Page

Contribute

If you'd like to assist and help the team please first review our Contribution Guidelines.

License

This project is under the GNU General Public License v3.0.

server's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.