AGSAVALIYA / ServerView

ServerView is a tool which will be used to monitor cloud infrastructure directly in the browser without hassle of SSH.
MIT License
4 stars 1 forks source link
collaborate github-copilot

ServerView (PM2 version)

📝 PM2 Log Viewer

PM2 Log Viewer is a web application built with Node.js and Express for managing and viewing logs of processes managed by PM2.

✨ Features

Now, viewing your self-hosted apps and managing logs is easier than ever!

🚀 Installation

  1. Clone the repository:

    git clone https://github.com/your/repository.git
    cd repository
  2. Install dependencies:

    npm install
  3. Set up environment variables:

    Create a .env file in the root directory with the following content:

    PM2_HOME=C:\Users\Intel\.pm2
    PORT=3002
    ADMIN_USERNAME=admin
    ADMIN_PASSWORD=password

    Adjust the values according to your environment setup.

💻 Usage

  1. Start the server with timestamp logging:

    pm2 start <server-file> --time

    This command starts the server with timestamp logging enabled, showing when each log entry was generated.

  2. Access the PM2 Log Viewer:

    Open your web browser and navigate to http://localhost:3002.

  3. Authenticate:

    Use the following credentials to log in:

    • Username: admin
    • Password: password
  4. Select a process:

    Choose a process from the dropdown list to view its logs in real-time. You can also select a date range to filter logs.

  5. Select a theme:

    Change the theme from the dropdown list to switch between Light Mode, Dark Mode, and Retro Mode.

📅 Roadmap

🔧 Configuration

📜 Additional Recommendations

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.