Skip to content

M-arcus/shopmon

 
 

Repository files navigation

Shop Monitoring

Shopmon is a hosted application from FriendsOfShopware to manage multiple Shopware instances.

  • Credentials are saved on a planetscale database
  • API runs on cloudflare workers (serverless)
  • Mails are sent via Mailgun

Features

Overview of all your Shopware instances to see:

  • Shopware Version and Security Updates
  • Show all installed extension and extension updates
  • Show info on scheduled tasks and queue
  • Run a daily check with pagespeed to see decreasing performance
  • Clear shop cache

Requirements (selfhosted)

  • Cloudflare Worker
  • Planet Scale Database
  • Mailgun

Managed / SaaS

https://shopmon.fos.gg

Frontend

If you want to test around a little locally you can run the frontend on your machine, but data is saved on the managed database by friendsofshopware

  • Go to cd frontend
  • Run npm i and npm run dev
  • Open localhost:3000 to see the page

Install Selfhosted

Setup

Planetscale

HOST: eu-central.connect.psdb.cloud
PORT: 3306
USERNAME: check /settings/passwords
PASSWORD: check /settings/passwords

Cloudflare worker

  • Install wrangler
  • Set all secrets in the UI or using wrangler cli
  • Adjust routes inside wrangler.toml to your domain

Mailgun

Currently restricted to EU API

Pagespeed

Enviroment variables

  • Go to api create a file .dev.vars and fill in the just created credentials of each service
DATABASE_HOST=aws.connect.psdb.cloud
DATABASE_USER=USER
DATABASE_PASSWORD=PW
MAILGUN_KEY=KEY
MAILGUN_DOMAIN=DOMAIN
PAGESPEED_API_KEY=AIzaSyCWNar-IbOaQT1WX_zfAjUxG01x7xErbSc
APP_SECRET=MZRa9lEjACNhNhw40QXwRZANRx8f1WQa

Frontend

  • Go to cd frontend
  • Run npm i and npm run dev:local
  • Open localhost:3000 to see the page

Backend / API

  • Go to cd api
  • Run npm i and npm run dev:local

Check your console output for request infos and console.logs

Configuration

Disable registration

To disable user registrations set the following variables:

frontend/.env To disable the frontend registration route:

VITE_DISABLE_REGISTRATION=1

api/.dev.vars The disable the app functionality:

DISABLE_REGISTRATION=1

License

MIT

About

Shopware Shop Monitoring

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 50.9%
  • Vue 45.4%
  • JavaScript 1.4%
  • CSS 1.3%
  • Other 1.0%