Skip to content
A social networking platform made using Node.js/ExpressJs/MongoDb(Mongoose)/Angluar/JQuery
Branch: master
Clone or download
Latest commit f90be99 May 25, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE Update issue templates Apr 13, 2019
bin awsome features Mar 19, 2019
config Change port to 8080 May 4, 2019
public [ImgBot] Optimize images May 19, 2019
routes efficient May 25, 2019
utils Fix like and comment issue Apr 21, 2019
views efficient May 25, 2019
.gitattributes Update .gitattributes May 23, 2019
.gitignore Merge branch 'master' into master Apr 30, 2019
AUTHORS Update AUTHORS Apr 16, 2019
CHANGELOG.md name changed Apr 18, 2019
CODE_OF_CONDUCT.md Create code of conduct to improve seo May 20, 2019
LICENSE Create LICENSE Apr 13, 2019
README.md Fix typo May 25, 2019
app.js reload on change temp fix Apr 17, 2019
electron.js name changed Apr 18, 2019
package-lock.json Add video uploads... Apr 25, 2019
package.json Add video uploads... Apr 25, 2019
travis.yml Create travis.yml Apr 20, 2019

README.md

spruce-banner

Spruce is a tiny but powerful open-source social networking platform made with Node.js and MongoDB.

Gitter Codacy Badge

Deployed on an Amazon EC2 instance here

Get the live MongoDB stats out here.

Features

  • Sign in using local authentication, Instagram or Google.
  • Search for your other users.
  • All feeds divided into 3 categories
    • thoughts (tweets)
    • events (location can be specified)
    • moments (personal post)
  • Like and comment on a feed.
  • View your/others profile.
  • Follow a particular user and get notified for his/her activities.
  • Change your profile picture, bio, people who follow you etc.
  • Some extras (games)

And a lot more to be added soon...

To Do's

  • Change the name (Issue #3)
  • Activity feature for user to see follow requests and his/her daily activity.
  • Chat one-one or create a room/group.
  • Notifications

Requirements

Installation

Clone the repo locally then install all the dependencies using NPM

$ git clone https://github.com/DivySrivastava/spruce.git
$ cd spruce
$ npm i

Local Development

Before 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 <CLIENT_ID>, <CLIENT_SECRET> and <host>:<port> with our own API credentials

/** REPLACE YOUR API CREDENTIALS HERE **/
var in_client_id = 'XXXXXXXXXXXXXXXXXX', // <CLIENT_ID>
    in_client_secret = 'XXXXXXXXXXXXXXXXXXXX', // <CLIENT_SECRET>

Now Replace the <host> & <port> with the redirect uri specified in the Instagram API Dashboard and Google API Dashboard. Default is http://localhost:80/account/oauth.

var in_redirect_uri = 'http://localhost:80/account/oauth/:service'

Finally start the MongoDB server in a seperate bash/pm2

$ mongod

and then start the spruce server via npm.

$ npm start

To know

spruce uses mongoose as an ORM for performing CRUD operations on MongoDB and express.js for server-side HTTP routing.

This project needs contributors!!

Authors

License

(The MIT License)

Copyright (c) 2019 Divy Srivastava dj.srivastava23@gmail.com

Permission 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:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE 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.

You can’t perform that action at this time.