Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alvin0319/traffic-viewer
https://github.com/alvin0319/traffic-viewer
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/alvin0319/traffic-viewer
- Owner: alvin0319
- Created: 2023-12-19T06:01:01.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-19T06:01:24.000Z (about 1 year ago)
- Last Synced: 2024-11-01T13:42:01.160Z (2 months ago)
- Language: TypeScript
- Size: 60.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# traffic-viewer
A simple traffic viewer for Linux-based distros using vnstat.# Requirements
- vnstat: any
- pnpm: >= 8.11.0
- node: >= 18# Installation
1. Clone the repository
2. Create .env file in frontend directory. and set the following to your desired backend url:
```
NEXT_PUBLIC_API_URL=...
```
3. Run `pnpm build`. The static html files will be available on frontend/out directory.
4. Serve files with your favorite web server.
5. Go to backend directory, and run `pnpm start`. The backend server will start, and try visiting your web server.# Used libraries
- [v0.dev](https://v0.dev) - used to struct frontend
- [Next.js](https://nextjs.org) - used to build frontend