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 go
go mod tidy
.env
file with your PostgreSQL detailsDATABASE_URL=postgresql://user:password@host:port/database
go run ./cmd/NedMed
cd src
npm install
npm run dev -- --open
.env
file with your production credentialsdocker-compose up -d
go build -o nedmed ./cmd/NedMed
npm run build