ab7f384014134bcfb2afb4264a6bccfe3f1aed95
NullCart
Self-hosted Monero shop with clearnet (HTTPS) and Tor onion hosting.
For production deployment, see the deployment guide.
Development
Start dev environment
# Create and edit .env.dev as needed
cp .env.example .env.dev
# Create monero wallet used by shop
./monero-wallet-rpc/setup-monero-wallet.sh --env-file .env.dev
# Build and start docker containers
docker compose --env-file .env.dev -f docker-compose.dev.yml build --no-cache
docker compose --env-file .env.dev -f docker-compose.dev.yml up --force-recreate
Install npm packages for code editor visibility
cd backend && npm i && cd ../cms && npm i
Database operations (run from inside container)
docker exec -it <container_name> /bin/sh
Running the migration
npm run typeorm:run-migrations
Generating the migration
npm run typeorm:generate-migration --name=<migration_name>
Reverting the last migration
npm run typeorm:revert-migration
Seeders
npm run typeorm:create-migration --name=<migration_name>
Tests
Backend unit tests
cd backend && npm run test
Languages
TypeScript
74.7%
Vue
17.8%
Handlebars
3.4%
CSS
2.4%
Shell
1%
Other
0.7%