Categorygithub.com/200sh/200sh-dashboard
repository
0.0.0-20250129210241-3385ac387ed5
Repository: https://github.com/200sh/200sh-dashboard.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

200sh Dashboard

200sh Logo

Project Description

200sh Dashboard is a web-based application designed to provide a user-friendly interface for managing and monitoring various aspects of the 200sh platform. It includes features such as user authentication, real-time monitoring, and more.

Installation

To install the 200sh Dashboard, follow these steps:

  1. Clone the repository:

    git clone https://github.com/200sh/200sh-dashboard.git
    cd 200sh-dashboard
    
  2. Install dependencies:

    go mod tidy
    npm install --prefix tailwind
    
  3. Build the project:

    go build -o ./tmp/main ./cmd/
    

Configuration

To configure the project, create a .env file in the root directory with the following content:

HANKO_API_URL="" # Replace with your project's API URL
DATABASE_NAME="dev.db" # Name of the database. Currently hardcoded to be a sqlite3 database
LOG_LEVEL="WARN" # WARN is the default level. Others: DEBUG, INFO, WARN, ERROR, OFF
DEV="false" # false is the default. Setting to true will remove some caching making live reloading better.

Admin API Key

To generate an admin api key for the dashboard, run the following command:

openssl rand -base64 32

Usage

To start the 200sh Dashboard, run the following command:

./tmp/main

The server will start on http://localhost:3000.

for live reloading when developing we recommend using air and running the server with the command:

air

Contribution Guidelines

We welcome contributions to the 200sh Dashboard! To contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Make your changes and commit them with clear commit messages.
  4. Push your changes to your forked repository.
  5. Create a pull request to the main repository.