Skip to content

Pinta365/WebPulseAnalytics

Repository files navigation

WebPulse Analytics Front-end Website

Source code of https://webpulseanalytics.com/, which could be leveraged to create a custom front-end for the WebPulse Analytics Backend.

Getting started

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/

Custom CSS Classes & Color System

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •