{"id":16433042,"url":"https://github.com/nour-karoui/docker-init","last_synced_at":"2026-05-02T10:44:25.702Z","repository":{"id":120552204,"uuid":"388607066","full_name":"nour-karoui/docker-init","owner":"nour-karoui","description":"a simple react application to get started with docker and DevOps basics","archived":false,"fork":false,"pushed_at":"2021-07-29T21:50:10.000Z","size":226,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-22T23:18:12.589Z","etag":null,"topics":["docker","docker-compose","docker-image","dockerfile","react","travis-ci"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/nour-karoui.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-22T21:54:42.000Z","updated_at":"2022-01-19T10:58:14.000Z","dependencies_parsed_at":"2024-07-15T04:02:43.192Z","dependency_job_id":null,"html_url":"https://github.com/nour-karoui/docker-init","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nour-karoui/docker-init","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nour-karoui%2Fdocker-init","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nour-karoui%2Fdocker-init/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nour-karoui%2Fdocker-init/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nour-karoui%2Fdocker-init/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nour-karoui","download_url":"https://codeload.github.com/nour-karoui/docker-init/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nour-karoui%2Fdocker-init/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32531742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","docker-image","dockerfile","react","travis-ci"],"created_at":"2024-10-11T08:44:57.190Z","updated_at":"2026-05-02T10:44:25.673Z","avatar_url":"https://github.com/nour-karoui.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eWelcome to Docker Init 👋\u003c/h1\u003e\n\u003cp\u003e\n  \u003ca href=\"https://github.com/nour-karoui/docker-init#readme\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Documentation\" src=\"https://img.shields.io/badge/documentation-yes-brightgreen.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/nour-karoui/docker-init/graphs/commit-activity\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Maintenance\" src=\"https://img.shields.io/badge/Maintained%3F-yes-green.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/nour-karoui/docker-init/blob/master/LICENSE\" target=\"_blank\"\u003e\n    \u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/github/license/bishkou/password-pwnd\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n#### a simple react application to get started with docker and DevOps basics\n\n\n### 🏠 [Homepage](https://github.com/nour-karoui/docker-init)\n\n\n## Install\n\n```sh\n\u003e git clone https://github.com/nour-karoui/docker-init.git\n\u003e cd frontend\n// running the project locally\n\u003e npm i\n\u003e npm start\n```\n\n## How It Works\n\nIn this project, we prepared two dockerfiles, to **build two docker images**, one appropriate for **dev env** and the other one for **prod env**\n\nTo run this project, make sure you have docker installed and create an account on [Dockerhub](https://hub.docker.com/)\n\n***PS***: You won't need any other dependencies installed, not even nodejs. Since the project on a container.\n\u003chr /\u003e\n\n### 1- Dev Environment\n\nDockerfile-dev builds an image for developing\n\n##### Running The project\n````shell script\ndocker build -t YOUR_DOCKER_ID/docker-react -f Dockerfile-dev .\ndocker run -p 3000:3000 YOUR_DOCKER_ID/docker-react\n````\n\n##### Running Tests\n\n```shell script\ndocker run YOUR_DOCKER_ID/docker-react npm run test\n```\n\u003chr /\u003e\nSince building a docker image means taking a snapshot of the current source code, later changes won't be detected in the docker container.\nWe configured the docker compose file so that local changes will be automatically propagated to the docker container.\n\n\u0026nbsp;\n\n**So instead of**\n```shell script\ndocker run -p 3000:3000 YOUR_DOCKER_ID/docker-react\n``` \n**We simply write**\n```shell script\ndocker-compose up\n``` \n\n\u003chr /\u003e\n\n### 2- Prod Environment\nDockerfile builds an image for production\n\n````shell script\ndocker build -t YOUR_DOCKER_ID/docker-react-prod .\ndocker run YOUR_DOCKER_ID/docker-react-prod\n````\n\n\n\u003chr /\u003e\n\n### 3- Github \u0026 Travis CI\nEach time we push our code to the github repo, Travis CI is triggered to run the build a docker image and run the container to execute the tests and make sure everything works properly.\n\n\u003chr /\u003e\n\n## Author\n\n👤 **Nour**\n\n* Github: [@nour-karoui](https://github.com/nour-karoui)\n* LinkedIn: [@nourkaroui](https://www.linkedin.com/in/nourkaroui/)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\u003cbr /\u003eFeel free to check [issues page](https://github.com/nour-karoui/docker-init/issues). You can also take a look at the [contributing guide](https://github.com/nour-karoui/docker-init/blob/master/CONTRIBUTING.md).\n\n## Show your support\n\nGive a [STAR](https://github.com/nour-karoui/docker-init) if this project helped you!\n\n## 📝 License\n\n* Copyright © 2021 [Nour](https://github.com/nour-karoui).\n* This project is [MIT](https://github.com/nour-karoui/docker-init/blob/master/LICENSE) licensed.\n\n***\n_This README was generated with by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnour-karoui%2Fdocker-init","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnour-karoui%2Fdocker-init","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnour-karoui%2Fdocker-init/lists"}