{"id":20571013,"url":"https://github.com/prixladi/linky","last_synced_at":"2026-04-29T21:36:32.984Z","repository":{"id":252412250,"uuid":"792490587","full_name":"prixladi/linky","owner":"prixladi","description":"Simple url shortener service with statistics for authenticated users","archived":false,"fork":false,"pushed_at":"2024-10-24T20:50:17.000Z","size":680,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T21:13:34.757Z","etag":null,"topics":["daisyui","drizzle-orm","nextjs","postgresql","react-server-components"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/prixladi.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-04-26T19:24:08.000Z","updated_at":"2024-08-09T13:47:22.000Z","dependencies_parsed_at":"2024-08-09T16:41:26.253Z","dependency_job_id":null,"html_url":"https://github.com/prixladi/linky","commit_stats":null,"previous_names":["prixladi/linky"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prixladi%2Flinky","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prixladi%2Flinky/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prixladi%2Flinky/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prixladi%2Flinky/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prixladi","download_url":"https://codeload.github.com/prixladi/linky/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242187631,"owners_count":20086217,"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":["daisyui","drizzle-orm","nextjs","postgresql","react-server-components"],"created_at":"2024-11-16T05:14:25.817Z","updated_at":"2026-04-29T21:36:27.964Z","avatar_url":"https://github.com/prixladi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linky\n\nSimple url shortener service with statistics for authenticated users.\n\n## Development\n\n1) Set up a instance of the PostgreSQL database. For example the [Vercel postgres](https://vercel.com/docs/storage/vercel-postgres) has a free tier.\n2) Set up `.env.local` file:\n    - POSTGRES_URL=(PostgreSQL connection string)\n    - TOKEN_SECRET=(Secret for token signature)\n3) Run:\n```sh\npnpm install\npnpm dev\n```\n\nThe application will start listening on port `3000`.\n\n## Project Overview\n\nThe project is using classic Next.js app router structure with `src` folder. Pages are utilizing [Server components](https://nextjs.org/docs/app/building-your-application/rendering/server-components) and [Server actions](https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations) whenever possible.\n\n### Structure\n\n- `/public` - Web root assets\n- `/src` - Source code\n    - `./app` - Next.js app router root, following mandatory app router structure.         \n        - Folders `./**/_components` include route scoped components.\n    - `./components` - Shared UI components\n    - `./server` - Server logic decoupled from Next.js frontend and backend\n        - `./db` - Db connection, client and models\n        - `./utils` - Server internal utils \n        - `./methods` - Front facing methods containing business logic\n    - `./lib`\n        - `./server` - Bindings to server logics (`/src/server/methods`)\n            - `./actions` - Next.js server actions\n    - `./middleware.ts` - Next.js middleware handling protected routes\n\n## Application images\n\n![Home](misc/assets/home.png)\n![Dashboard](misc/assets/dashboard.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprixladi%2Flinky","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprixladi%2Flinky","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprixladi%2Flinky/lists"}