NedMed is a simple self-hosted application for uploading and storing media files on your local machine or self-hosted server, with PostgreSQL integration for metadata storage. It uses a Go backend for handling file uploads and a Svelte/TypeScript frontend for a modern user interface.
Clone the repository:
git clone https://github.com/yourusername/nedmed.git
cd nedmed
Create a .env file in the root directory:
DATABASE_URL=postgresql://user:password@host:port/database
DB_USER=user
DB_PASSWORD=password
DB_DATABASE=database
BACKEND_URL = http://localhost:3000
Start the application:
docker-compose up --build
The application will be available at: http://localhost:3000
If you prefer to run the services without Docker, follow these steps:
cd gogo mod tidy.env file with your PostgreSQL detailsDATABASE_URL=postgresql://user:password@host:port/database
go run ./cmd/NedMedcd srcnpm installnpm run dev -- --open.env file with your production credentialsdocker-compose up -dgo build -o nedmed ./cmd/NedMednpm run build