{"id":24272458,"url":"https://github.com/abdorrahmani/nodejs-dockerized-app","last_synced_at":"2026-02-03T20:44:03.500Z","repository":{"id":271981601,"uuid":"915173805","full_name":"abdorrahmani/nodejs-dockerized-app","owner":"abdorrahmani","description":"A simple Node.js application built with Express.js, Redis, and MongoDB, fully containerized using Docker and Docker Compose.","archived":false,"fork":false,"pushed_at":"2025-01-12T10:30:46.000Z","size":19,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-24T12:39:03.121Z","etag":null,"topics":["anophel","docker","docker-compose","docker-image","dockerfile","expressjs","mongodb","node","nodejs","redis"],"latest_commit_sha":null,"homepage":"https://anophel.com","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/abdorrahmani.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":"2025-01-11T06:43:31.000Z","updated_at":"2025-06-05T22:48:57.000Z","dependencies_parsed_at":"2025-01-12T10:41:23.968Z","dependency_job_id":null,"html_url":"https://github.com/abdorrahmani/nodejs-dockerized-app","commit_stats":null,"previous_names":["abdorrahmani/nodejs-dockerized","abdorrahmani/nodejs-dockerized-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abdorrahmani/nodejs-dockerized-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdorrahmani%2Fnodejs-dockerized-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdorrahmani%2Fnodejs-dockerized-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdorrahmani%2Fnodejs-dockerized-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdorrahmani%2Fnodejs-dockerized-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdorrahmani","download_url":"https://codeload.github.com/abdorrahmani/nodejs-dockerized-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdorrahmani%2Fnodejs-dockerized-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29056796,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T20:13:53.544Z","status":"ssl_error","status_checked_at":"2026-02-03T20:13:40.507Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["anophel","docker","docker-compose","docker-image","dockerfile","expressjs","mongodb","node","nodejs","redis"],"created_at":"2025-01-15T18:26:36.097Z","updated_at":"2026-02-03T20:44:03.481Z","avatar_url":"https://github.com/abdorrahmani.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js Dockerized App\n\n[![Node.js](https://img.shields.io/badge/Node.js-v22-green?logo=node.js)](https://nodejs.org/)\n[![Express.js](https://img.shields.io/badge/Express.js-v4-blue?logo=express)](https://expressjs.com/)\n[![Docker](https://img.shields.io/badge/Docker-%23ffffff.svg?logo=docker\u0026logoColor=2496ED)](https://www.docker.com/)\n[![Redis](https://img.shields.io/badge/Redis-v7-red?logo=redis)](https://redis.io/)\n[![MongoDB](https://img.shields.io/badge/MongoDB-v6-green?logo=mongodb)](https://www.mongodb.com/)\n[![Website](https://img.shields.io/badge/Website-Online-brightgreen?style=flat\u0026logo=google-chrome)](https://anophel.com)\n[![Build Status](https://img.shields.io/badge/build-passing-brightgreen)]()\n\nA simple Node.js application built with Express.js, Redis, and MongoDB, fully containerized using Docker and Docker Compose.\n\n---\n\n## Features\n- 🛠 **Express.js**: Lightweight framework for building web applications.\n- 🐋 **Dockerized**: Fully containerized with `docker-compose`.\n- 🗃 **MongoDB**: NoSQL database for data storage.\n- 🚀 **Redis**: In-memory data store for caching.\n- 🔄 **Hot-Reload**: Automatic reloading in development with `nodemon`\n\n---\n\n## Prerequisites\n\n- [Node.js](https://nodejs.org/) (if running locally)\n- [Docker](https://www.docker.com/)\n- [Docker Compose](https://docs.docker.com/compose/)\n\n---\n\n## Getting Started\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/abdorrahmani/nodejs-dockerized-app.git\ncd nodejs-dockerized-app\n```\n\n### 2. Environment Variables\n\nEnsure the following environment variables are set in `.env`:\n\n```yaml\n# Application settings\nAPP_NAME=NodejsDockerizedApp\nAPP_PORT=3000\n\n  # Redis settings\nREDIS_HOST=redis\nREDIS_PORT=6379\nREDIS_USERNAME=default\nREDIS_PASSWORD=redispassword\nREDIS_DB=0\n\n  # MongoDB settings\nMONGO_HOST=mongo\nMONGO_PORT=27017\nMONGO_USERNAME=mongouser\nMONGO_PASSWORD=mongopassword\nMONGO_DB=appdatabase\n\n```\n\n### 3. Run the App\n\n#### Using Docker Compose\n\n```bash\ndocker-compose up --build\n```\n\n#### Access the App\n\nVisit [http://localhost:3000](http://localhost:3000) in your browser.\n\n### 4. Run Locally (Without Docker)\n\n#### Install Dependencies\n\n```bash\nnpm install\n```\n\n#### Development Mode\n\n```bash\nnpm run dev\n```\n\n#### Production Mode\n\n```bash\nnpm start\n```\n\n---\n\n## File Structure\n\n```plaintext\nnodejs-dockerized-app/\n├── app.js                 # Main application logic\n├── Dockerfile             # Docker image configuration\n├── docker-compose.yml     # Docker Compose configuration\n├── .env                   # Environment variables\n├── .env.example           # Example Environment variables\n├── nodemon.json           # Nodemon configuration\n├── package.json           # Node.js project metadata\n└── README.md              # Project documentation\n```\n\n---\n\n## Scripts\n\n| Command       | Description                  |\n|---------------|------------------------------|\n| `npm start`   | Run the app in production    |\n| `npm run dev` | Run the app in development   |\n---\n\n## Technologies Used\n\n- **Node.js**: Runtime for JavaScript.\n- **Express.js**: Web framework.\n- **Redis**: In-memory data structure store.\n- **MongoDB**: NoSQL database.\n- **Docker**: Containerization platform.\n\n---\n\n## Troubleshooting\n\n- Ensure `Docker Desktop` and `WSL2` are properly configured if using Windows.\n- Check the logs of the containers for debugging:\n\n```bash\ndocker logs \u003ccontainer_name\u003e\n```\n---\n## Contributing\n\nContributions are welcome! Please submit a pull request or open an issue if you find bugs or have suggestions.\n\n---\n\n## Acknowledgements\n\nThanks to the developers of [Node.js](https://nodejs.org/), [Redis](https://redis.io/), [MongoDB](https://www.mongodb.com/), and the [Docker](https://www.docker.com/) community for their awesome tools.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdorrahmani%2Fnodejs-dockerized-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdorrahmani%2Fnodejs-dockerized-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdorrahmani%2Fnodejs-dockerized-app/lists"}