{"id":13577258,"url":"https://github.com/JaneMoroz/astro-ssr","last_synced_at":"2025-04-05T11:32:01.874Z","repository":{"id":62606873,"uuid":"560327207","full_name":"JaneMoroz/astro-ssr","owner":"JaneMoroz","description":"A simple PWA build with Astro SSR and Strapi CMS.","archived":false,"fork":false,"pushed_at":"2022-11-10T17:42:16.000Z","size":7053,"stargazers_count":26,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-02T15:33:26.115Z","etag":null,"topics":["astro","auth","authentication","metronic8","netlify","pwa","ssr","strapi-cms"],"latest_commit_sha":null,"homepage":"https://astro-ssr-test.netlify.app","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/JaneMoroz.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-11-01T08:37:30.000Z","updated_at":"2024-07-28T21:25:15.000Z","dependencies_parsed_at":"2022-11-04T01:09:40.263Z","dependency_job_id":null,"html_url":"https://github.com/JaneMoroz/astro-ssr","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/JaneMoroz%2Fastro-ssr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaneMoroz%2Fastro-ssr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaneMoroz%2Fastro-ssr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaneMoroz%2Fastro-ssr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JaneMoroz","download_url":"https://codeload.github.com/JaneMoroz/astro-ssr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223186491,"owners_count":17102472,"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":["astro","auth","authentication","metronic8","netlify","pwa","ssr","strapi-cms"],"created_at":"2024-08-01T15:01:19.844Z","updated_at":"2024-11-05T14:30:46.645Z","avatar_url":"https://github.com/JaneMoroz.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eAstro SSR Test App\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n   A simple PWA app build with Astro SSR and Strapi CMS.\n\u003c/div\u003e\n\u003cbr/\u003e\n\n\u003cdiv align=\"center\"\u003e\u003cimg src=\"https://i.ibb.co/KwdRMtN/products.png\" width=\"800\"\u003e\u003c/img\u003e\u003c/div\u003e\n\n## 😀 User Can:\n\n- [x] View the optimal layout for the site depending on their device's screen size\n- [x] See hover states for all interactive elements on the page\n- [x] Sign in / Sign out / Sign up\n- [x] Add / Edit / Delete product\n- [x] Add items to the cart\n- [x] View the cart and remove items from it\n- [x] See some cached images offline\n\n## ❗️ Importan:\n\nDeployed app can be seen [here](https://astro-ssr-test.netlify.app). It's server side is on `HEROKU` ('free tier' ), because of that\n\n- [x] Server goes to sleep\n- [x] If you are trying to load `/product` page, it might fail the first time (server is waking up), just reload\n- [x] Authenticated users can upload images and see them, but after server goes to sleep, it erases them \n\n## 🚀 Project Structure\n\nInside of the project, you'll see the following folders and files:\n\n```\n/\n backend/\n └──├── (strapi)\n frontend/\n └──├── public/\n    │   └── assets\n    │   └── icons\n    │   └── app.js\n    │   └── manifest.jso\n    │   └── service-worker.js\n    │   └── ... \n    ├── src/\n    │   ├── components/\n    │   │   └── auth\n    │   │       └── ...\n    │   │   └── header\n    │   │   └── product\n    │   │   └── ...\n    │   ├── layouts/\n    │   │   └── Layout.astro\n    │   └── pages/\n    │   │   └── index.astro\n    │   │   └── ...\n    │   └── interfaces/\n    │       └──ICartItem.ts\n    │       └── ...\n    └── package.json\n```\n\n## 🧞 Instructions\nFirst you need to create 👇 (if it doesn't exist) in `/frontend` folder:\n### `.env`\n\nReplace values with yours, without `/` in the end (❗️❗️❗️)\n```\nPUBLIC_SERVER_URL=\"http://localhost:1337\"\nPUBLIC_CLIENT_URL=\"http://localhost:3000\"\n```\n\nTo run the server:\n```\nopen terminal\nnpm install (first time only)\ncd backend\nnpm run development\n\ngo to http://localhost:1337/admin --\u003e sign in (try to memorize your email/password ❗️)\n```\n\nTo run the client:\n```\nopen new terminal\nnpm install (first time only)\ncd frontend\nnpm run dev\n```\n\nMake sure that urls match ones in `.env`, if not replace them.\n\n🎉\n\u003cbr/\u003e\n\n## 💻 Preview:\n\u003cp float=\"left\"\u003e\n \u003cimg src=\"https://i.ibb.co/KwdRMtN/products.png\" width=\"400\"\u003e\n \u003cimg src=\"https://i.ibb.co/BT0G0cD/single-product.png\" width=\"400\"\u003e\n\u003c/p\u003e\n\u003cp float=\"left\"\u003e\n \u003cimg src=\"https://i.ibb.co/qW9Yq1s/edit-product.png\" width=\"400\"\u003e\n \u003cimg src=\"https://i.ibb.co/X3tRJj7/sign-up.png\" width=\"400\"\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJaneMoroz%2Fastro-ssr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJaneMoroz%2Fastro-ssr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJaneMoroz%2Fastro-ssr/lists"}