@rxpm/streamz-server
v0.5.4
Published
Simple video management server
Readme
Streamz Server
A Node.js video library application built with Fastify web framework. Streamz allows you to manage and serve videos locally with user authentication and REST API support.
Features
- Local video management and storage
- User authentication system
- REST API endpoints for video operations
- Web interface for video management
- Secure file upload and serving
Prerequisites
- Node.js (v18 or higher recommended)
- npm (comes with Node.js)
Installation
- Clone the repository:
git clone https://gitlab.com/rajatxs/streamz-server.git- Install dependencies:
npm installUsage
Starting the Server
To start the server in development mode:
npm run dev:startTo start the server in production mode:
npm run startCreating Admin User
Create an admin user using the following command:
npm run dev:create-adminAPI Endpoints
The server provides RESTful API endpoints for video management. All API endpoints require authentication.
Authentication
- Basic authentication is used for API endpoints
- User credentials must be provided in the Authorization header
Available Endpoints
GET /api/videos- List all videosPOST /api/videos- Upload new videoGET /api/videos/:id- Get video detailsDELETE /api/videos/:id- Delete video
Project Structure
streamz-server/
├── cmd/ # Command line interface
├── appdata/ # Application data directory
├── src/ # Source code
└── package.json # Project dependenciesLicense
ISC License
Author
Rajat Sharma
- Email: [email protected]
- GitLab: https://gitlab.com/rajatxs
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
