{"id":20527750,"url":"https://github.com/padi2312/gallerimg","last_synced_at":"2025-09-02T16:37:14.504Z","repository":{"id":262877262,"uuid":"845177224","full_name":"Padi2312/gallerimg","owner":"Padi2312","description":"Gallerimg is a simple web application to upload images and share them publicly.","archived":false,"fork":false,"pushed_at":"2024-11-14T19:04:16.000Z","size":587,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T11:32:52.527Z","etag":null,"topics":["photo","photography","sveltekit","webapp","website"],"latest_commit_sha":null,"homepage":"https://photo.parndt.de","language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Padi2312.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-20T18:24:23.000Z","updated_at":"2024-12-26T00:01:05.000Z","dependencies_parsed_at":"2024-11-14T19:39:56.704Z","dependency_job_id":"f298a7c9-950f-4daa-95e9-c58c281db3d7","html_url":"https://github.com/Padi2312/gallerimg","commit_stats":null,"previous_names":["padi2312/gallerimg"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Padi2312%2Fgallerimg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Padi2312%2Fgallerimg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Padi2312%2Fgallerimg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Padi2312%2Fgallerimg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Padi2312","download_url":"https://codeload.github.com/Padi2312/gallerimg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242133479,"owners_count":20077097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["photo","photography","sveltekit","webapp","website"],"created_at":"2024-11-15T23:20:07.232Z","updated_at":"2025-03-06T01:50:21.392Z","avatar_url":"https://github.com/Padi2312.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./static/favicon.png\" alt=\"Gallerimg Logo\" width=\"200\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eGallerimg\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003e\n  Gallerimg is an image gallery web application that allows users to upload photos and share them with others.\n  \u003c/strong\u003e\n\u003c/p\u003e\n\n### Table of Contents\n- [Usage](#usage)\n- [Installation](#installation)\n  - [Prerequisites](#prerequisites)\n  - [Setup](#setup)\n- [Development Setup](#development-setup)\n  - [Prerequisites](#prerequisites-1)\n  - [Setup](#setup-1)\n- [Data Paths](#data-paths)\n- [Environment Variables](#environment-variables)\n\n# Usage\n\nTo upload some images you need to go to the admin page [https://localhost:3000/admin](https://localhost:3000/admin). \n\nCredentials: `admin` / `admin`\n\n\u003e [!NOTE]\n\u003e You can change them by setting the `ADMIN_USERNAME` and `ADMIN_PASSWORD` environment variables. \n\nClick on the `Upload` entry in the sidebar, then drag and drop the images you want to upload or click to select them from your file system.\n\n# Installation\n\n## Prerequisites\n- Docker \n\n## Setup\n\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/Padi2312/gallerimg.git\n    ```\n\n2. Run docker build to create the image:\n    ```bash\n    docker build -t gallerimg .\n    ```\n\n3. Run the container:\n    ```bash\n    docker run -d -p 3000:3000 gallerimg -e DATABASE_URL=postgres://user:password@localhost:5432/gallerimg \n    ```\n    \u003e [!IMPORTANT]\n    \u003e Replace the `DATABASE_URL` value with the connection string for your database server.\n    \u003e When running the database via Docker Compose, the connection string should be `postgres://user:password@host.docker.internal:5432/gallerimg`.\n\n# Development Setup \n\n## Prerequisites\n\n- Node.js (v22 or higher)\n- Docker \n\n## Setup\n\n\u003e [!NOTE]\n\u003e The database server must be running before starting the development server or running the application.\n\n1. Start the database server using Docker Compose:\n    ```bash\n    docker-compose up -d\n    ```\n\n2. Install pnpm and the dependencies:\n    ```bash\n    npm install -g pnpm\n    pnpm install\n    ```\n\n3. Start the development server:\n    ```bash\n    pnpm dev\n    ```\n\n4. Open the application in your browser at `http://localhost:5173`.\n\n# Data Paths\n\n- `data/images` - Image uploads directory\n\n# Environment Variables\n\n| Env variable     | Description                                                        |\n| ---------------- | ------------------------------------------------------------------ |\n| `DATABASE_URL`   | URL for the database connection. _(default: none)_  |\n| `AUTH_SECRET`    | Secret key for JWT authentication. _(default: secret)_             |\n| `ADMIN_USERNAME` | Username for the admin account. _(default: admin)_                 |\n| `ADMIN_PASSWORD` | Password for the admin account. _(default: admin)_                 |\n| `LOG_LEVEL`      | Logging level for the application. (default: 0)                    |\n| `MAIL_HOST`      | SMTP server host for sending emails. (default: none)               |\n| `MAIL_PORT`      | SMTP server port for sending emails. (default: none)               |\n| `MAIL_USER`      | SMTP server username for sending emails. (default: none)           |\n| `MAIL_PASS`      | SMTP server password for sending emails. (default: none)           |\n| `MAIL_FROM`      | Email address for the \"From\" field in sent emails. (default: none) |\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpadi2312%2Fgallerimg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpadi2312%2Fgallerimg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpadi2312%2Fgallerimg/lists"}