{"id":14970016,"url":"https://github.com/madhums/node-express-mongoose","last_synced_at":"2025-05-14T12:10:25.951Z","repository":{"id":9086829,"uuid":"10862540","full_name":"madhums/node-express-mongoose","owner":"madhums","description":"A boilerplate application for building web apps using node and mongodb","archived":false,"fork":false,"pushed_at":"2024-12-06T07:48:28.000Z","size":1761,"stargazers_count":1437,"open_issues_count":10,"forks_count":388,"subscribers_count":42,"default_branch":"master","last_synced_at":"2025-04-11T04:59:07.170Z","etag":null,"topics":["boilerplate","express","mongoose","node","nodejs","passport"],"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/madhums.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["madhums"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2013-06-22T09:37:38.000Z","updated_at":"2025-04-09T01:16:41.000Z","dependencies_parsed_at":"2023-09-22T21:11:22.856Z","dependency_job_id":"7dd99ffb-d1cf-4567-90cc-a70f0649e051","html_url":"https://github.com/madhums/node-express-mongoose","commit_stats":{"total_commits":167,"total_committers":9,"mean_commits":"18.555555555555557","dds":0.6826347305389222,"last_synced_commit":"86e569617f8e5a382e524bc6f3eed99ad3772a2a"},"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhums%2Fnode-express-mongoose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhums%2Fnode-express-mongoose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhums%2Fnode-express-mongoose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhums%2Fnode-express-mongoose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madhums","download_url":"https://codeload.github.com/madhums/node-express-mongoose/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254140757,"owners_count":22021219,"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","mongoose","node","nodejs","passport"],"created_at":"2024-09-24T13:42:53.181Z","updated_at":"2025-05-14T12:10:25.925Z","avatar_url":"https://github.com/madhums.png","language":"JavaScript","readme":"[![tests](https://github.com/madhums/node-express-mongoose/actions/workflows/test.yml/badge.svg)](https://github.com/madhums/node-express-mongoose/actions/workflows/test.yml)\n[![Code Climate](https://codeclimate.com/github/codeclimate/codeclimate/badges/gpa.svg)](https://codeclimate.com/github/madhums/node-express-mongoose)\n\n## Node Express Mongoose\n\nA boilerplate application for building web apps using express, mongoose and passport.\n\nRead the [wiki](https://github.com/madhums/node-express-mongoose/wiki) to understand how the application is structured.\n\n## Usage\n\n    git clone https://github.com/madhums/node-express-mongoose.git\n    cd node-express-mongoose\n    npm install\n    cp .env.example .env\n    npm start\n\nCheckout the [apps that are built using this approach](https://github.com/madhums/node-express-mongoose/wiki/Apps-built-using-this-approach)\n\n## Docker\n\nYou can also use docker for development. Make sure you run npm install on your host machine so that code linting and everything works fine.\n\n```sh\nnpm i\ncp .env.example .env\n```\n\nStart the services\n\n```sh\ndocker-compose up -d\n```\n\nView the logs\n\n```sh\ndocker-compose logs -f\n```\n\nIn case you install a npm module while developing, it should also be installed within docker container, to do this first install the module you want with simple `npm i module name`, then run it within docker container\n\n```sh\ndocker-compose exec node npm i\n```\n\nIf you make any changes to the file, nodemon should automatically pick up and restart within docker (you can see this in the logs)\n\nTo run tests\n\n```sh\ndocker-compose exec -e MONGODB_URL=mongodb://mongo:27017/noobjs_test node npm test\n```\n\nNote that we are overriding the environment variable set in `.env` file because we don't want our data erased by the tests.\n\nNote: The difference between exec and run is that, exec executes the command within the running container and run will spin up a new container to run that command. So if you want to run only the tests without docker-compose up, you may do so by running `docker-compose run -e MONGODB_URL=mongodb://mongo:27017/my_app_test node npm test`\n\n## Deployment\n\nIf you want to deploy to heroku, you can follow [this article](https://devcenter.heroku.com/articles/deploying-nodejs)\n\n## License\n\nMIT\n","funding_links":["https://github.com/sponsors/madhums"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadhums%2Fnode-express-mongoose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadhums%2Fnode-express-mongoose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadhums%2Fnode-express-mongoose/lists"}