{"id":14956665,"url":"https://github.com/dan-divy/spruce","last_synced_at":"2025-04-04T19:14:35.818Z","repository":{"id":34810485,"uuid":"166039038","full_name":"dan-divy/spruce","owner":"dan-divy","description":"A social networking platform made using Node.js and MongoDB","archived":false,"fork":false,"pushed_at":"2022-12-30T20:44:41.000Z","size":112144,"stargazers_count":500,"open_issues_count":13,"forks_count":114,"subscribers_count":25,"default_branch":"master","last_synced_at":"2024-10-29T14:20:47.907Z","etag":null,"topics":["api","css","electron","express","html","javascript","mean","mean-stack","media","mongo","mongodb","mongodb-database","mongoose","node","nodejs","oauth","oauth2","social","social-login","social-network"],"latest_commit_sha":null,"homepage":"","language":"SCSS","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/dan-divy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":"dan_divy","open_collective":"dan_divy","ko_fi":"dan_divy","tidelift":null,"community_bridge":null,"liberapay":"dan_divy","issuehunt":"divysrivastava","otechie":null,"custom":null}},"created_at":"2019-01-16T12:46:40.000Z","updated_at":"2024-10-25T05:07:16.000Z","dependencies_parsed_at":"2023-01-15T09:30:54.270Z","dependency_job_id":null,"html_url":"https://github.com/dan-divy/spruce","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan-divy%2Fspruce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan-divy%2Fspruce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan-divy%2Fspruce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan-divy%2Fspruce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dan-divy","download_url":"https://codeload.github.com/dan-divy/spruce/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234923,"owners_count":20905854,"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":["api","css","electron","express","html","javascript","mean","mean-stack","media","mongo","mongodb","mongodb-database","mongoose","node","nodejs","oauth","oauth2","social","social-login","social-network"],"created_at":"2024-09-24T13:13:19.226Z","updated_at":"2025-04-04T19:14:35.797Z","avatar_url":"https://github.com/dan-divy.png","language":"SCSS","readme":"# Welcome to Spruce\n\n![](.gitbook/assets/banner.png)\n\nSpruce is a tiny but powerful open-source social networking platform made with Node.js and MongoDB.\n\n[![Financial Contributors on Open Collective](https://opencollective.com/dan_divy/all/badge.svg?label=financial+contributors)](https://opencollective.com/dan_divy) [![Gitter](https://badges.gitter.im/spruce-social/community.svg)](https://gitter.im/spruce-social/community?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/fae0af1cd8784133bdb3e86727e3ff2a)](https://www.codacy.com/app/DivySrivastava/spruce?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=DivySrivastava/spruce\u0026utm_campaign=Badge_Grade) ![](https://img.shields.io/badge/license-MIT-green.svg) ![](https://api.travis-ci.org/DivySrivastava/spruce.svg?branch=master) [![Discord](https://img.shields.io/discord/713257349866848327?color=%237289DA\u0026label=discord\u0026logo=discord\u0026logoColor=%23fff)](https://discord.gg/DPRZuB4)\n\n_Deployed_ [_here_](https://sprucev3.dancodes.online/)\n\nGet the live MongoDB stats out [here](https://cloud.mongodb.com/freemonitoring/cluster/SQXXT6OAMR757LIEYJRN3WDUCIRAEYYV).\n\n![](.gitbook/assets/intro.gif)\n\n\n\n## Features\n\n- Sign in using local authentication, Instagram or Google.\n- Search for your other users.\n- Chat with your friends in realtime.\n- All feeds divided into 3 categories\n  - thoughts \\(tweets\\)\n  - events \\(location can be specified\\)\n  - moments \\(personal post\\)\n- Like and comment on a feed.\n- API for developers\n- View your/others profile.\n- Follow a particular user and get notified for his/her activities.\n- Change your profile picture, bio, people who follow you etc.\n- Electron app\n\nAnd a lot more to be added soon...\n\n## To Do's\n\n- Activity feature for user to see follow requests and his/her daily activity.\n- Notifications\n\n## Requirements\n\n- [Node.js](https://nodejs.org)\n  - expressjs [ExpressJS HTTP middleware](https://npmjs.org/package/express)\n  - ejs [Embedded JavaScript templates](https://npmjs.org/package/ejs)\n- [MongoDB](http://mongodb.org)\n\n## Installation\n\nClone the repo locally then install all the dependencies using [NPM](https://npmjs.org/)\n\n```bash\n$ git clone https://github.com/dan-divy/spruce.git\n$ cd spruce\n$ npm i\n```\n\n## Local Development\n\nBefore running, we need to add the Instgram and Google API Credentials to the project. Under the `config` directory of the repo, you will find `instagram.js` and `google.js`. We need to add the `\u003cCLIENT_ID\u003e`, `\u003cCLIENT_SECRET\u003e` and `\u003chost\u003e:\u003cport\u003e` with our own API credentials\n\n```javascript\n/** REPLACE YOUR API CREDENTIALS HERE **/\nvar in_client_id = 'XXXXXXXXXXXXXXXXXX', // \u003cCLIENT_ID\u003e\n    in_client_secret = 'XXXXXXXXXXXXXXXXXXXX', // \u003cCLIENT_SECRET\u003e\n```\n\nNow Replace the `\u003chost\u003e` \u0026 `\u003cport\u003e` with the redirect uri specified in the [Instagram API Dashboard](https://www.instagram.com/developer) and [Google API Dashboard](https://developers.google.com). Default is `http://localhost:80/account/oauth`.\n\n```javascript\nvar in_redirect_uri = \"http://localhost:80/account/oauth/:service\";\n```\n\nFinally start the MongoDB server in a seperate bash/pm2\n\n```bash\n$ mongod\n```\n\nand then start the spruce server via `npm`.\n\n```bash\n$ npm start\n```\n\n## To know\n\nspruce uses [mongoose](https://npmjs.org/package/mongoose) as an ORM for performing CRUD operations on MongoDB and [express.js](https://npmjs.com/package/express) for server-side HTTP routing.\n\n**This project needs contributors!!**\n\n## Authors\n\n- [Divy Srivastava](http://github.com/DivySrivastava)\n- [Dan](https://github.com/dan-online)\n\n## Contributors\n\n### Code Contributors\n\nThis project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].\n\u003ca href=\"https://github.com/dan-divy/spruce/graphs/contributors\"\u003e\u003cimg src=\"https://opencollective.com/dan_divy/contributors.svg?width=890\u0026button=false\" /\u003e\u003c/a\u003e\n\n### Financial Contributors\n\nBecome a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/dan_divy/contribute)]\n\n#### Individuals\n\n\u003ca href=\"https://opencollective.com/dan_divy\"\u003e\u003cimg src=\"https://opencollective.com/dan_divy/individuals.svg?width=890\"\u003e\u003c/a\u003e\n\n#### Organizations\n\nSupport this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/dan_divy/contribute)]\n\n\u003ca href=\"https://opencollective.com/dan_divy/organization/0/website\"\u003e\u003cimg src=\"https://opencollective.com/dan_divy/organization/0/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/dan_divy/organization/1/website\"\u003e\u003cimg src=\"https://opencollective.com/dan_divy/organization/1/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/dan_divy/organization/2/website\"\u003e\u003cimg src=\"https://opencollective.com/dan_divy/organization/2/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/dan_divy/organization/3/website\"\u003e\u003cimg src=\"https://opencollective.com/dan_divy/organization/3/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/dan_divy/organization/4/website\"\u003e\u003cimg src=\"https://opencollective.com/dan_divy/organization/4/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/dan_divy/organization/5/website\"\u003e\u003cimg src=\"https://opencollective.com/dan_divy/organization/5/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/dan_divy/organization/6/website\"\u003e\u003cimg src=\"https://opencollective.com/dan_divy/organization/6/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/dan_divy/organization/7/website\"\u003e\u003cimg src=\"https://opencollective.com/dan_divy/organization/7/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/dan_divy/organization/8/website\"\u003e\u003cimg src=\"https://opencollective.com/dan_divy/organization/8/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/dan_divy/organization/9/website\"\u003e\u003cimg src=\"https://opencollective.com/dan_divy/organization/9/avatar.svg\"\u003e\u003c/a\u003e\n\n## License\n\n\\(The MIT License\\)\n\nCopyright \\(c\\) 2019 Divy Srivastava [dj.srivastava23@gmail.com](mailto:dj.srivastava23@gmail.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files \\(the 'Software'\\), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":["https://patreon.com/dan_divy","https://opencollective.com/dan_divy","https://ko-fi.com/dan_divy","https://liberapay.com/dan_divy","https://issuehunt.io/r/divysrivastava","https://opencollective.com/dan_divy/contribute","https://opencollective.com/dan_divy/organization/0/website","https://opencollective.com/dan_divy/organization/1/website","https://opencollective.com/dan_divy/organization/2/website","https://opencollective.com/dan_divy/organization/3/website","https://opencollective.com/dan_divy/organization/4/website","https://opencollective.com/dan_divy/organization/5/website","https://opencollective.com/dan_divy/organization/6/website","https://opencollective.com/dan_divy/organization/7/website","https://opencollective.com/dan_divy/organization/8/website","https://opencollective.com/dan_divy/organization/9/website"],"categories":["SCSS"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdan-divy%2Fspruce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdan-divy%2Fspruce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdan-divy%2Fspruce/lists"}