cp .env.example .env
- Add API keys to .env (Technically OpenSea is optional, but app will currently fail without it)
docker-compose up
localhost:8112/maaria.eth
(insert.eth name as you see fit)
docker-compose exec eth-xyz-node bash
Run it once:
node ace process:queue
Run it using forever:
forever --minUptime=1000 --spinSleepTime=2000 ace process:queue
node ace build --production --ignore-ts-errors
cd build
cp ../.env .env
npm ci --production
I recommend using forever
to run basic servers. Otherwise you can use pm2
Forever method:
npm install -g forever
forever start server.js
Basic Method:
node server.js
PM2 / Additional Methods:
- Intermittent
Error: Cannot find module '../lib/config/parse-runtime'
errors can be solved by accessing the docker container and runningrm -rf node_modules;npm install
The frontend of this application is written in Vanilla javascript. The bulk of the application is in loader.js
.
constructor()
is the entrypoint that kicks off everything.
Templates are rendered using underscore.js