https://github.com/gettocat/friday
Blockchain framework for create dapps
https://github.com/gettocat/friday
Last synced: 2 months ago
JSON representation
Blockchain framework for create dapps
- Host: GitHub
- URL: https://github.com/gettocat/friday
- Owner: gettocat
- License: mit
- Created: 2018-06-12T19:26:25.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-21T08:51:45.000Z (about 5 years ago)
- Last Synced: 2024-10-05T22:04:13.505Z (8 months ago)
- Language: JavaScript
- Homepage: http://orwellscan.org
- Size: 2.25 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# friday
Blockchain framework for small DAPPS## Install
Before you need install last version of node from nodejs.org and supervisor for daemon.
```bash
cd
mkdir project
cd project
mkdir logs
git clone https://github.com/gettocat/friday.git .
npm install
```## Run
```
node mainnet.js
```## Daemon
supervisor config
```
[program:friday]
command=node /home/%user%/project/index.js ; the program (relative uses PATH, can take args)
process_name=%(program_name)s_%(process_num)02d ; process_name expr (default %(program_name)s)
numprocs=1 ; number of processes copies to start (def 1)
directory=/home/%user%/project ; directory to cwd to before exec (def no cwd)
autostart=true ; start at supervisord start (default: true)
user=root ; setuid to this UNIX account to run the program
redirect_stderr=true ; redirect proc stderr to stdout (default false)
stdout_logfile=/home/%user%/project/logs/log.txt ; stdout log path, NONE for none; default AUTO
stdout_logfile_maxbytes=5MB ; max # logfile bytes b4 rotation (default 50MB)
stdout_logfile_backups=20 ; # of stdout logfile backups (0 means none, default 10)
environment=LC_ALL="en_US.UTF-8",LANG="en_US.UTF-8",LANGUAGE="en_US.UTF-8" ; process environment additions (def no adds)
autorestart=true
stderr_logfile=/home/%user%/project/logs/err.txt
redirect_stderr=true```
add to supervisor
```
nano /etc/supervisor/conf.d/friday.conf
### paste config ---^ ###
/etc/init.d/supervisor restart
```