{"id":15974615,"url":"https://github.com/malithmcr/strapi-next-blog","last_synced_at":"2025-04-04T17:13:04.230Z","repository":{"id":97358874,"uuid":"350117818","full_name":"malithmcr/strapi-next-blog","owner":"malithmcr","description":"A blog using Strapi and Next.js","archived":false,"fork":false,"pushed_at":"2021-03-21T21:11:49.000Z","size":1202,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T02:24:51.439Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/malithmcr.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":"2021-03-21T21:00:23.000Z","updated_at":"2023-03-08T14:24:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"f8766ae3-d0f6-4fda-a3ec-ab1c3305cd8f","html_url":"https://github.com/malithmcr/strapi-next-blog","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/malithmcr%2Fstrapi-next-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malithmcr%2Fstrapi-next-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malithmcr%2Fstrapi-next-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malithmcr%2Fstrapi-next-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malithmcr","download_url":"https://codeload.github.com/malithmcr/strapi-next-blog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247217221,"owners_count":20903009,"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":[],"created_at":"2024-10-07T21:43:07.384Z","updated_at":"2025-04-04T17:13:04.213Z","avatar_url":"https://github.com/malithmcr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cdiv align=\"center\"\u003e\u003cstrong\u003eStart your next.js project in seconds\u003c/strong\u003e\u003c/div\u003e\n\u003cdiv align=\"center\"\u003eThis project is based on Next.js 9.2.1 (Server side rendering react framwork). react-int (multilanguage) ready.\u003c/div\u003e\n\n\nLive: https://app.malithpriyashandev.vercel.app/\n\n## Running the project locally (Without Docker)\n\nMake sure you have npm installed.\n\n1. `git clone git@github.com:malithmcr/next.js-boilerplate.git \u0026 cd app`\n2. Run `npm i`\n3. Start the dev server using `npm run dev`\n\nVisit http://localhost:3000 on your browser\n\n\n## Running the project locally without Docker compose\n\n```bash\ndocker-compose up\n```\n\nNGINX listens on port 80, which is the default HTTP port, so you can just visit **http://localhost/**\n\n\n## Without Docker Compose\n\n```bash\n# Build images\ndocker build --tag nextjs-image .\ndocker build --tag nginx-image ./nginx\n\n# Create shared network\ndocker network create my-network\n\n# Run containers\ndocker run --network my-network --name nextjs-container nextjs-image\ndocker run --network my-network --link nextjs-container:nextjs --publish 80:80 nginx-image\n```\n\n_Next.js container is referenced inside NGINX container as `nextjs`._\n\n## Available npm Commands \n\n- `npm run dev` - start the dev server\n- `npm run build` - create a production ready build\n- `npm start` - start production server\n- `npm staging` - start staging server\n\n\n## PM2 commands (For production)\n\nPM2 commands can still be used inside a container with the `docker exec` command:\n\n```\ndocker exec -it \u003ccontainer-id\u003e pm2 monit          # Monitoring CPU/Usage of each process\n```\n```\ndocker exec -it \u003ccontainer-id\u003e pm2 list           # Listing managed processes\n```\n```\ndocker exec -it \u003ccontainer-id\u003e pm2 show           # Get more information about a process\n```\n```\ndocker exec -it \u003ccontainer-id\u003e pm2 reload all     # 0sec downtime reload all applications\n```\n\n\n####Running tests \n\u003e npm run test:watch\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg alt=\"tests\" src=\"/docs/tests.png?raw=true\" width=\"80%\"\u003e\n\u003c/div\u003e\n\n####Deploying the app\n\n\u003e npm run build\n\n\u003e npm install -g now\n\n\u003e cd app \u0026\u0026 now\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg alt=\"build\" src=\"/docs/build.png?raw=true\" width=\"80%\"\u003e\n\u003c/div\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalithmcr%2Fstrapi-next-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalithmcr%2Fstrapi-next-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalithmcr%2Fstrapi-next-blog/lists"}