GithubHelp home page GithubHelp logo

hhy5277 / leaflet-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dan-divy/spruce

0.0 1.0 0.0 89.43 MB

A social networking platform made using Node.js/ExpressJs/MongoDb(Mongoose)/Angluar/JQuery

Home Page: http://mygurukulonline.in

License: MIT License

JavaScript 15.06% CSS 80.05% HTML 4.89%

leaflet-1's Introduction

spruce-banner

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

Deployed on an Amazon EC2 instance here

Get the live MongoDB stats out here.

Features

  • Sign in using local authentication or using your Instagram account.
  • 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.
  • Sign in using FaceBook, Twitter and Google accounts.
  • Chat one-one or create a room/group.

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 API Credentials to the project. Under the config directory of the repo, you will find instagram.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 Instgram API Dashboard. Default is http://localhost:80/account/oauth.

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

One last thing is to specify the instagram config file in our authentication router and API. Under the file routes/auth.js and routes/api/v1/index.js change the config file path to instagram.js.

// routes/auth.js
/** REPLACE INSTAGRAM CONFIG PATH HERE **/
var config = require('../config/instagram.js');
// routes/api/v1/index.js
/** SET YOUR instagram config path over here **/
var ig = require('../config/instagram.js');

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 [email protected]

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.

leaflet-1's People

Contributors

dan-online avatar littledivy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.