{"id":19914801,"url":"https://github.com/physer/nuxt-dockerize-example","last_synced_at":"2025-05-03T05:31:55.322Z","repository":{"id":62876199,"uuid":"563243924","full_name":"Physer/nuxt-dockerize-example","owner":"Physer","description":"A minimal NuxtJS docker image example application","archived":false,"fork":false,"pushed_at":"2022-12-16T08:09:46.000Z","size":2605,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-06-17T08:40:15.417Z","etag":null,"topics":["docker","docker-compose","nodejs","nuxt","nuxt-bridge","nuxt2","nuxt3","nuxtjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Physer.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-08T07:56:00.000Z","updated_at":"2022-11-15T12:24:21.000Z","dependencies_parsed_at":"2023-01-29T11:32:45.264Z","dependency_job_id":null,"html_url":"https://github.com/Physer/nuxt-dockerize-example","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Physer%2Fnuxt-dockerize-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Physer%2Fnuxt-dockerize-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Physer%2Fnuxt-dockerize-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Physer%2Fnuxt-dockerize-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Physer","download_url":"https://codeload.github.com/Physer/nuxt-dockerize-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224354151,"owners_count":17297401,"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":["docker","docker-compose","nodejs","nuxt","nuxt-bridge","nuxt2","nuxt3","nuxtjs"],"created_at":"2024-11-12T21:37:10.321Z","updated_at":"2024-11-12T21:37:11.007Z","avatar_url":"https://github.com/Physer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nuxt-dockerize-example\nA minimal NuxtJS docker image example application\n\n## Nuxt versions\nThe `main` branch is currently using NuxtJS version 2.\nIf you would like to view this application in version 3 of NuxtJS, please switch to the `nuxt-v3` branch.\n\n## Nuxt Bridge\nNuxt Bridge is a forward-compatability layer for using NuxtJS v3 features such as Nitro on NuxtJS v2.\nFor more information see: https://v3.nuxtjs.org/bridge/overview/\n\nThere are two other branches available in this repository.\n\n* The branch: `nuxt-bridge` contains a working version of Nuxt Bridge. This includes a Docker container.\n* The branch: `nuxt-bridge-broken` contains a showcase of what happens when you mix Nuxt Bridge with the regular NuxtJS v2 build system. This will result in a working development environment but a broken production environment.\n\n## Internal libraries\nThis applications also contains a locally built NPM module. The library is written in Typescript and transpiled to Javascript.\nThis module is installed as a symlink and is bundled as a `.js` file using `tsup`.\nLibraries are included in the `libs` folder.\n\n## Custom modules and server middleware\nThis application sports four different modules.\n1. The `customModule`. This module adds a badge to the Nuxt start-up process saying the module is initialized. This is a `buildModule`.\n2. The `middlewareModule`. This module logs every URL request it intercepts. This is a `module` and pushes `serverMiddleware`.\n2. The `loremModule`. This module generates random lorem ipsum upon start-up using an external package: [lorem-ipsum](https://www.npmjs.com/package/lorem-ipsum). This is a `buildModule`.\n2. The `uuidModule`. This module logs generates a random UUID on start-up using an external package: [uuid](https://www.npmjs.com/package/uuid). This is a `module`.\n\n## Available pages\nCurrently there are 4 pages available:\n1. `/` - The home page, a page with static data\n2. `/ssr` - A page that dynamically renders data from an external API\n3. `/env` - A page that retrieves both a public and a private environment variable and prints them on-screen\n4. `/guid` - A page that prints a GUID generated by an external library\n5. `/lipsum` - A page that prints some generated Lorem Ipsum from an internal library\n\n## How to run\nCopy the `.env.example` file and rename it to `.env`.\nRun the following commands:\n1. `npm i`\n2. `npm run build`\n3. `npm run start`\n\n## Docker\n### Docker Compose\n\nThe easiest way to get the application up and running is by using Docker Compose.\nSimply run the command `docker-compose up -d` in the root of this repository. If you want to rebuild the image you can run the following Docker Compose command: `docker-compose up -d --build`.\n\nThis will result in two applications running:\n1. The application now runs on http://localhost:3000/\n\n### Manually building the image\n1. Build the docker image by running `docker build -f .\\Dockerfile . -t nuxt-dockerize-example`\n2. Run the docker image by running `docker run -d -p 3000:3000 nuxt-dockerize-example`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphyser%2Fnuxt-dockerize-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphyser%2Fnuxt-dockerize-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphyser%2Fnuxt-dockerize-example/lists"}