$ yarn$ yarn devIt will:
- Create .env file in app directory with following variables
- DATABASE_URL=
- APP_SECRET
- Create sqlite database
futurebit.sqlitein app directory and run pending migrations - Start GraphQL API on http://localhost:5000/graphql
You can't build this on a low-resources MCU (<= 512MB ram), so there is a script to run the builder in a docker that simulates an OrangePI with Armbian and create a file with all the node_modules compiled.
$ ./scripts/buildIt will generate the file build//futurebit.tar.gz
Next step required:
- scp
futurebit.tar.gzto the MCU - extract it in a tmp directory
- copy (overwrite)
node_modulesto/opt/apolloapidirectory - pull changes
- restart
apolloservice
In the system MCU there are several commands built-in:
Apollo API manager:
$ sudo systemctl start|stop|restart|status|... apolloMiner manager:
$ sudo systemctl start|stop|restart|status|... bfgminerWifi manager:
$ nmcli help