{"id":24247129,"url":"https://github.com/kartikk-26/dockerized-2048-game","last_synced_at":"2026-04-12T12:32:29.997Z","repository":{"id":272111580,"uuid":"915561266","full_name":"Kartikk-26/Dockerized-2048-Game","owner":"Kartikk-26","description":"The Dockerized 2048 Game containerizes the game using Docker, served via Nginx, and deployed on AWS Elastic Beanstalk and Netlify for scalability. It’s a fun way to learn Docker basics.","archived":false,"fork":false,"pushed_at":"2025-01-12T07:52:43.000Z","size":298,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T08:27:50.262Z","etag":null,"topics":["aws","docker","docker-compose","docker-image","dockercontainers","dockerfile","javascript","netlify-deployment"],"latest_commit_sha":null,"homepage":"https://dockerized-2048-game.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/Kartikk-26.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","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":"2025-01-12T07:15:09.000Z","updated_at":"2025-01-12T07:52:46.000Z","dependencies_parsed_at":"2025-01-12T08:28:27.159Z","dependency_job_id":"64061260-55cd-4936-8a8e-caf2b381905f","html_url":"https://github.com/Kartikk-26/Dockerized-2048-Game","commit_stats":null,"previous_names":["kartikk-26/dockerized-2048-game"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kartikk-26%2FDockerized-2048-Game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kartikk-26%2FDockerized-2048-Game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kartikk-26%2FDockerized-2048-Game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kartikk-26%2FDockerized-2048-Game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kartikk-26","download_url":"https://codeload.github.com/Kartikk-26/Dockerized-2048-Game/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241877174,"owners_count":20035402,"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":["aws","docker","docker-compose","docker-image","dockercontainers","dockerfile","javascript","netlify-deployment"],"created_at":"2025-01-14T23:18:15.005Z","updated_at":"2026-04-12T12:32:29.948Z","avatar_url":"https://github.com/Kartikk-26.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n---\n\n# 🕹️ Dockerized 2048 Game 🎮\n\nThis project demonstrates the use of **Docker** by containerizing the popular **2048 game**. \n\nThe project aims to provide hands-on experience with Docker commands, including building images, running, and managing containers, while deploying a fun, interactive game.\n\nThe game runs on an **Nginx server**, and the Docker container is deployed on **AWS Elastic Beanstalk** to provide a scalable and accessible setup.\n\n---\n\n## ✨ **Features**\n\n- Fully Dockerized setup for the 2048 game.\n- Uses an Nginx server to serve the game.\n- Deployed on AWS Elastic Beanstalk for production-grade scalability.\n- Learn and practice Docker commands such as:\n  - Building Docker images.\n  - Running and stopping Docker containers.\n  - Inspecting Docker images and container logs.\n\n---\n\n## 🛠️ **Technologies Used**\n\n### Core:\n\n- **Docker** for containerizing the application.\n- **Nginx** for serving the game.\n- **AWS Elastic Beanstalk** for deployment.\n- **JavaScript** for the game logic.\n\n---\n\n## 📂 **Folder Structure**\n\n```\nDockerized-2048-Game/\n│\n├── js/                      # JavaScript files for game logic\n├── meta/                    # Metadata for the project\n├── style/                   # CSS styles for the game\n├── .gitignore               # Git ignore file\n├── .jshintrc                # JavaScript linting rules\n├── CONTRIBUTING.md          # Guidelines for contributing\n├── Dockerfile               # Dockerfile for building the game image\n├── LICENSE.txt              # License for the project\n├── README.md                # Documentation for the project\n├── Rakefile                 # Rake configuration\n├── favicon.ico              # Favicon for the game\n├── index.html               # Main HTML file for the game\n```\n\n---\n\n## 🏡 **Setting Up the Project Locally**\n\nTo run this project locally, follow these steps:\n\n### 📥 **Step 1 : Create/Access the Dockerfile**\n\nEnsure you have a valid `Dockerfile` to set up the Nginx server and the 2048 game.\n\n### 🐋 **Step 2 : Build the Docker Image**\n\nRun the following command to build the Docker image:\n\n```bash\ndocker build -t 2048-nginx .\n```\n\n### 🔍 **Step 3 : Verify the Docker Image**\n\nCheck if the image is built successfully:\n\n```bash\ndocker images\n```\n\nEnsure the image is listed with the name `2048-nginx`.\n\n### ▶️ **Step 4 : Run the Docker Container**\n\nStart the container with the following command:\n\n```bash\ndocker run -p 80:80 2048-nginx\n```\n\n### 🌐 **Step 5 : Access the Game**\n\nOpen your browser and visit:\n\n```\nhttp://localhost\n```\n\n---\n\n## ⚙️ **Customization**\n\nYou can modify the `nginx.conf` file or the game assets (`index.html`, `main.css`, `game.js`) to customize the game as per your requirements.\n\n---\n\n## 💡 **Purpose**\n\nThis project is designed to:\n\n- Simplify Docker concepts for beginners.\n- Provide a practical example of containerization using a lightweight application.\n- Help users understand Docker images, Docker containers, Docker Compose and deployment strategies.\n- Offer an engaging way to learn Docker while playing the 2048 game.\n\n---\n\n\n## 📸 **Screenshot**\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://cloud.githubusercontent.com/assets/1175750/8614312/280e5dc2-26f1-11e5-9f1f-5891c3ca8b26.png\" alt=\"Screenshot\"/\u003e\n\u003c/p\u003e\n\nThat screenshot is fake, by the way. I never reached 2048 :smile:\n\n## 💡 Connect with Me\n\nStay connected on [LinkedIn](https://www.linkedin.com/in/-kartikjain/) to explore more projects and innovative ideas.\n\nLet’s collaborate and build amazing applications together!\n\n---\n\n### 🙏 Acknowledgment  \n\nA big thanks to [Gabriele Cirulli's GitHub repository](https://github.com/gabrielecirulli/2048) 🎉 for creating this wonderful game. I 🐳 dockerized it and, in the process, solidified my understanding of Docker concepts. 🚀\n\n---\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkartikk-26%2Fdockerized-2048-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkartikk-26%2Fdockerized-2048-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkartikk-26%2Fdockerized-2048-game/lists"}