{"id":16483462,"url":"https://github.com/swap76/nodejs_mongo_boilerplate","last_synced_at":"2025-03-21T07:30:54.592Z","repository":{"id":40916247,"uuid":"181817095","full_name":"Swap76/NodeJS_Mongo_BoilerPlate","owner":"Swap76","description":"CRUD Blog using NodeJS,Express, MongoDB","archived":false,"fork":false,"pushed_at":"2023-01-24T00:53:25.000Z","size":1170,"stargazers_count":21,"open_issues_count":19,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T22:37:09.241Z","etag":null,"topics":["boilerplate","express","mongodb","nodejs","sentry"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Swap76.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":"2019-04-17T04:28:38.000Z","updated_at":"2024-03-15T20:24:09.000Z","dependencies_parsed_at":"2023-02-13T07:00:40.110Z","dependency_job_id":null,"html_url":"https://github.com/Swap76/NodeJS_Mongo_BoilerPlate","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/Swap76%2FNodeJS_Mongo_BoilerPlate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swap76%2FNodeJS_Mongo_BoilerPlate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swap76%2FNodeJS_Mongo_BoilerPlate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swap76%2FNodeJS_Mongo_BoilerPlate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Swap76","download_url":"https://codeload.github.com/Swap76/NodeJS_Mongo_BoilerPlate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244757359,"owners_count":20505382,"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":["boilerplate","express","mongodb","nodejs","sentry"],"created_at":"2024-10-11T13:14:05.437Z","updated_at":"2025-03-21T07:30:54.211Z","avatar_url":"https://github.com/Swap76.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NodeJS Mongo BoilerPlate\nCRUD API using NodeJS, Experss, MongoDB\n\n## About\n\nThis Repo is for beginners of NodeJS who wants to make a full API service. This repo has a good folder structure. Joi for validation of incoming data. Passport for encrypting passwords.  \n\n### Prerequisites\n\nFollowing are the softwares requried to get this api up and running.\n* [Node.js](https://nodejs.org) - Chrome's V8 Javascript Engine\n* [MongoDB](https://mongodb.org) - NoSQL Database\n\n### Installing\n\n- Getting the configuration ready \u003cbr\u003e\n  Copy the .env.example file at the same location and save as .env\n  ```\n  cp .env.example .env\n  ```\n- Create account on MongoDB Atlas and paste the       database URL in .env file\n\n- Create account on Sentry and paste the Sentry DNS   into .env file (Only for production to get emails about errors)\n\n- Install the packages mentioned in package.json file for getting all dependencies of the project.\n  ```\n  npm install --save\n  ```\n- Starting the application\n  \u003cbr/\u003e\n  \n  ```\n  npm start\n  ```\n\n## Getting started with the project with Docker\n\n* Fork the repository on GitHub.\n\n* Navigate to the folder of the repository.\n\n* To run this project, you should have Docker installed on your system.\nIf you don't have Docker, you can visit [The official site of Docker](https://docs.docker.com/docker-for-mac/install/)\nto install them on your system.\n\n* Building the Docker Image for Docker Hub\n\t```\n\tdocker build -t your_dockerhub_username/your_project_name .\n\t```\n\tThe . specifies that the build context is the current directory.\n\n* It will take a minute or two to build the image. Once it is complete, check your images:\n\t```\n\tdocker images\n\t```\n\tYou will see the image listed in the list.\n\n* Run the following command to build the container:\n\t```\n\tdocker run -p 5000:5000 \u003cyour_dockerhub_username\u003e/\u003cyour_project_name\u003e\n\t```\n\tAll requests of port 5000 will be forwarded to port 5000 of container\n\n* Once your container is up and running, you can inspect a list of your running containers with following command:\n\t```\n\tdocker ps\n\t```\n\tYou will see the image listed in the list.\n\n* With your container running, you can now visit your application by navigating your browser to ` http://your_server_ip`. You will see your application landing page once again:\n\n* For stoping the container you can use following command:\n\t```\n\tdocker stop \u003cContainer_Id\u003e\n\t```\n  \n## Developers\n\n* **Swapnil Shinde** - [Swap76](https://github.com/Swap76)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswap76%2Fnodejs_mongo_boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswap76%2Fnodejs_mongo_boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswap76%2Fnodejs_mongo_boilerplate/lists"}