Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
korovindenis committed Jul 29, 2023
1 parent 7a55b9c commit 9e2b6f9
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 109 deletions.
78 changes: 0 additions & 78 deletions .github/workflows/deploy.yaml

This file was deleted.

62 changes: 46 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,49 @@
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/korovindenis/shutdown-from-browser)
![GitHub](https://img.shields.io/github/license/korovindenis/shutdown-from-browser)

The service for linux allowing you to manage the power of the system (server or PC) from the web browser or through the rest requests to api

#### The application allows:
- to restart the system
- to turn off the system
- to turn off the system according to the scheduler (for example, after n-hours)
- through the rest api to know or set the time for the automatic shutdown or restart the system immediately

The configuration file configures the port on which the application will run and the logging level
With the help of the Makefile you can install the application as a linux service

#### Installation
```sh
Make build-app
Make install
```

## Description

**Shutdown from Browser** is a simple web server built in Go that allows users to shut down their computer remotely using a web browser. With this tool, you can conveniently power off or restart your computer without needing to be physically present.

The web server uses React to provide a modern and responsive user interface, making it easy and intuitive for users to interact with the shutdown and restart functionality.

## Installation and Running

To build and run the **Shutdown from Browser** web server, you can use the included Makefile:

1. Clone the repository:

`git clone https://github.com/korovindenis/shutdown-from-browser.git
cd shutdown-from-browser`

2. Initialize the `CONFIG_PATH` environment variable to point to the location of your configuration file:

`export CONFIG_PATH=/path/to/your/configs/config.prod.yaml`

3. Use the Makefile to build the server:

`make build`

4. Run the server:

`make run`

The web server will be available at `http://localhost:8081/`.


## Configuration

The **Shutdown from Browser** web server allows you to customize its behavior by modifying the `config.yaml` file. This file contains various settings that you can adjust according to your preferences.

The `config.prod.yaml` file is straightforward to use, and it provides comments to guide you through the available settings. After making changes to the configuration, remember to restart the server for the modifications to take effect.

## License

This project is licensed under the [Apache License 2.0](https://github.com/korovindenis/shutdown-from-browser/blob/master/LICENSE.md).

## Contributions and Feedback

If you have any suggestions, find any issues, or would like to contribute to the project, feel free to create an Issue or Pull Request. We value your contributions and strive to improve the project continuously.

Thank you for using **Shutdown from Browser**! We hope this tool makes it more convenient for you to remotely control your computer's power state.
15 changes: 0 additions & 15 deletions deployments/shutdown-from-browser.service

This file was deleted.

0 comments on commit 9e2b6f9

Please sign in to comment.