{"id":19834920,"url":"https://github.com/bepitulaz/live-in-estonia","last_synced_at":"2025-05-01T17:32:04.126Z","repository":{"id":37916915,"uuid":"502630851","full_name":"bepitulaz/live-in-estonia","owner":"bepitulaz","description":"The Next.js photo blog project of Live In Estonia.","archived":false,"fork":false,"pushed_at":"2024-02-17T16:16:23.000Z","size":23197,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-04-24T03:01:12.041Z","etag":null,"topics":["blog-engine","blogging","google","javascript","nextjs","photography-portfolio","photos","vercel"],"latest_commit_sha":null,"homepage":"https://www.liveinestonia.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bepitulaz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-12T13:57:57.000Z","updated_at":"2023-10-20T16:23:10.000Z","dependencies_parsed_at":"2022-08-25T05:20:59.263Z","dependency_job_id":null,"html_url":"https://github.com/bepitulaz/live-in-estonia","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bepitulaz%2Flive-in-estonia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bepitulaz%2Flive-in-estonia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bepitulaz%2Flive-in-estonia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bepitulaz%2Flive-in-estonia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bepitulaz","download_url":"https://codeload.github.com/bepitulaz/live-in-estonia/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224270298,"owners_count":17283649,"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":["blog-engine","blogging","google","javascript","nextjs","photography-portfolio","photos","vercel"],"created_at":"2024-11-12T12:05:56.414Z","updated_at":"2024-11-12T12:05:56.484Z","avatar_url":"https://github.com/bepitulaz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Live In Estonia 🇪🇪\n\nThis repository contains the source code of [liveinestonia.com](https://www.liveinestonia.com), a photo blog project about living in Estonia by [Asep Bagja Priandana](https://profile.asepbagja.com).\n\nYou can fork and use the source code for your photo blog too.\n\n## Tech stack\n\n- Google Photos as a content management system.\n- Next.js as a static site generator\n- Node.js version \u003e= 16 \n\nYou can deploy it anywhere. Live In Estonia is deployed on [Vercel](https://vercel.com/new?utm_medium=default-template\u0026filter=next.js\u0026utm_source=create-next-app\u0026utm_campaign=create-next-app-readme).\n\n## How to use this project\n\nBefore using this project, you must have a Google Photos account.\n\n### 1. Preparing Google Photos as CMS\n\n1. Create an album.\n2. Upload all your photos to that newly created album.\n3. You can put the description of the photo from Info menu.\n4. Get the ID for that album.\n5. Put it in `.env` file (don't forget to rename it from `.env.example`).\n\n\u003e **Note**\n\u003e\n\u003e There is no easy way to get the album ID without writing a code to fetch [this endpoint](https://developers.google.com/photos/library/guides/list#listing-albums).\n\n### 2. Preparing Google OAuth credential\n\nYou can follow the guide from Google about how to get the access credential from Google Cloud Platform: [the guide](https://developers.google.com/workspace/guides/create-credentials).\n\n\u003e **Note**\n\u003e\n\u003e When creating the credential choose \"Desktop application\" instead of \"Web application\".\n\nDownload `google-secret.json` file from this process, and put it in the root of this repository.\n\n### 3. Fetching all photos\n\nThis project is using Static Site Generator feature of Next.js. Thus, we need to prepare the data before building Next.js\n\n1. Fetch all photos from Google Photos by running `yarn get-photos`. Follow the authentication process that happens when you run that CLI command.\n2. After the process is completed, you will have `posts.json` file inside `data` directory.\n\n### 4. Running the project on your local machine\n\nYou can run it by using `yarn dev` command.\n\n## Future plan\n\nEnhance `yarn get-photos` command to get the `album ID` easily without put it inside `.env` file.\n\n## License\n\nThis project is licensed under MIT, you can use it freely and as it is.\n\nHappy photo blogging! 📸😄","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbepitulaz%2Flive-in-estonia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbepitulaz%2Flive-in-estonia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbepitulaz%2Flive-in-estonia/lists"}