|
1 |
| -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). |
| 1 | +# Server Remote |
2 | 2 |
|
3 |
| -## Getting Started |
| 3 | +Power off or reboot your computer remotely. It designed to support Windows, macOS, and linux, but I tested on Windows and linux. |
4 | 4 |
|
5 |
| -First, run the development server: |
| 5 | +This project originally developed for my home server. So there is no authentication or security functions. To be careful using this on public server. |
6 | 6 |
|
7 |
| -```bash |
8 |
| -npm run dev |
9 |
| -# or |
10 |
| -yarn dev |
11 |
| -# or |
12 |
| -pnpm dev |
13 |
| -``` |
14 |
| - |
15 |
| -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. |
16 |
| - |
17 |
| -You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. |
| 7 | +## How to set up |
18 | 8 |
|
19 |
| -This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. |
| 9 | +1. Install `pm2` |
| 10 | +```shell |
| 11 | +npm install -g pm2@latest |
| 12 | +``` |
| 13 | +2. Run `pm2` |
| 14 | +```shell |
| 15 | +pm2 start ecosystem.config.js |
| 16 | +``` |
| 17 | +3. Done! |
20 | 18 |
|
21 |
| -## Learn More |
| 19 | +## How to use |
22 | 20 |
|
23 |
| -To learn more about Next.js, take a look at the following resources: |
| 21 | +1. Access `http(s)://[YOUR DOMAIN]:[YOUR PORT]`. |
| 22 | +2. You can see below page |
| 23 | + |
| 24 | +3. First button is power off, and second is reboot. So you can power off or reboot your computer remotely using these buttons. |
24 | 25 |
|
25 |
| -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. |
26 |
| -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. |
| 26 | +> If you set up HTTPS, you can install this page as Progressive Web App. |
27 | 27 |
|
28 |
| -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! |
| 28 | +## Contribution |
29 | 29 |
|
30 |
| -## Deploy on Vercel |
| 30 | +All kind of contribution is welcome! |
31 | 31 |
|
32 |
| -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. |
| 32 | +## License |
33 | 33 |
|
34 |
| -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. |
| 34 | +You can use this repository under MIT License. |
0 commit comments