Source code of https://webpulseanalytics.com/, which could be leveraged to create a custom front-end for the WebPulse Analytics Backend.
For instructions on setting up your own front end, or contributing to webpulse, see developer.webpulseanalytics.com/.
Short version:
The short version is to create an .env
with the following content:
# WebPulse Analytics Frontend .env Configuration
# JSON Web Token (JWT) secret for cookie encryption
JWT_SECRET=<your_jwt_secret_here>
JWT_COOKIE=webpulse_sess
# GitHub authentication
GITHUB_COOKIE_STATE_NAME=webpulse_auth_state
GITHUB_CLIENT_ID=<your_github_client_id>
GITHUB_CLIENT_SECRET=<your_github_client_secret>
GITHUB_CALLBACK_URL=http://localhost:8000/api/auth/github/callback
# Base URL for your website
WEBSITE_BASE_URL=http://localhost:8000
# MongoDBconfiguration
MONGO_URI="mongodb://localhost:27017/
... and starting the server using this command:
deno task start
Then you will reach the front-end at http://localhost:8000/
This project uses a centralized color system defined in static/css/styles.css
using CSS custom properties (variables)
for both light and dark modes. You can easily customize the appearance of the site, including light and dark mode
colors, by editing these variables.
A set of utility classes (e.g., .bg-card
, .text-primary
, .btn-primary
, etc.) are provided to apply these colors
throughout the app. To change the color scheme, simply update the values in the :root
and .dark
selectors in the CSS
file.
This approach makes it easy to maintain a consistent look and feel, and to quickly adjust the color palette for branding or accessibility needs.