{"id":17924971,"url":"https://github.com/diptochakrabarty/node_app","last_synced_at":"2025-03-24T03:30:58.730Z","repository":{"id":51868020,"uuid":"236311024","full_name":"DiptoChakrabarty/node_app","owner":"DiptoChakrabarty","description":"A Image Uploader App Containerized  for scaling  . Built using Nodejs allows users to  upload images with a description and other users to comment on it .","archived":false,"fork":false,"pushed_at":"2022-12-13T13:01:14.000Z","size":2627,"stargazers_count":3,"open_issues_count":4,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-19T01:11:29.801Z","etag":null,"topics":["docker","docker-compose","docker-image","dockerfiles","hacktoberfest","mongodb","mongodb-database","mongoosejs","node-module","nodejs","nodejs-modules","nodejs-server","nodemon"],"latest_commit_sha":null,"homepage":"","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/DiptoChakrabarty.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":"2020-01-26T12:45:15.000Z","updated_at":"2020-10-15T10:25:40.000Z","dependencies_parsed_at":"2023-01-28T12:16:28.756Z","dependency_job_id":null,"html_url":"https://github.com/DiptoChakrabarty/node_app","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/DiptoChakrabarty%2Fnode_app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiptoChakrabarty%2Fnode_app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiptoChakrabarty%2Fnode_app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiptoChakrabarty%2Fnode_app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DiptoChakrabarty","download_url":"https://codeload.github.com/DiptoChakrabarty/node_app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245204454,"owners_count":20577352,"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","docker-image","dockerfiles","hacktoberfest","mongodb","mongodb-database","mongoosejs","node-module","nodejs","nodejs-modules","nodejs-server","nodemon"],"created_at":"2024-10-28T20:51:48.692Z","updated_at":"2025-03-24T03:30:57.004Z","avatar_url":"https://github.com/DiptoChakrabarty.png","language":"JavaScript","readme":"# Blog_App\n\n- A Simple Web App which allows users to add their blogs.\n- Users can add modify and comment on their blogs\n- Authentication system is also enabled\n- Project made using node.js and MongoDb\n- The project has been deployed using Docker\n- App has been scaled using Kubernetes\n\n\n## Tech Stack Used\n\n- Node.js\n- MongoDb\n- Docker \n- Docker Compose\n- Kubernetes\n\n## Contributing \n\n- If you find a bug or have a good feature in your mind please raise an issue\n- If you would like to send a PR please send it to the development branch first\n- Once I find the PR to be stable I will merge it to the master branch\n\n### How to Run Project\n\n#### Locally using node\n```\n- Clone Project\n- Enter project directory and run npm install\n- Run node  app.js\n- Server has started at port 3000\n```\n\n### Run using Docker\n```\n- Ensure docker and docker-compose is installed \n- Start services of docker and enable them\n- There are two files a Dockerfile and docker-compose.yml\n- Dockerfile is used to create docker image\n- To run application run docker-compose up -d \n- Go to localhost:3000\n\n```\n\n### Run using Kubernetes\n\n#### Minikube\n```\n- Ensure you have minikube installed\n- All kubernetes files are present in kube folder\n- Run kubectl apply -f kube \n- This creates all the pods required\n- Check pods status using kubectl get pods\n\n```\n\n#### Cluster\n----\n\n- In master node \n    * kubeadm init --apiserver-advertise-address $(hostname -i)\n    * mkdir -p $HOME/.kube\n    * sudo cp /etc/kubernetes/admin.conf $HOME/\n    * sudo chown $(id -u):$(id -g) $HOME/admin.conf\n    * export KUBECONFIG=$HOME/admin.conf\n    * echo \"export KUBECONFIG=$HOME/admin.conf\" | tee -a ~/.bashrc\n    * Apply networking using kubectl apply -n kube-system -f \\\n    \"https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\\n')\"\n    * Check master node status using  kubectl get pods -n kube-system\n\n- Worker nodes\n    * Connect to master nodes using master node token \n    * mkdir -p $HOME/.kube\n    * sudo cp /etc/kubernetes/admin.conf $HOME/\n    * sudo chown $(id -u):$(id -g) $HOME/admin.conf\n    * export KUBECONFIG=$HOME/admin.conf\n\n\n````\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiptochakrabarty%2Fnode_app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiptochakrabarty%2Fnode_app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiptochakrabarty%2Fnode_app/lists"}