GetStream / Stream Example Nodejs
Licence: bsd-3-clause
An example app built using getstream.io
Stars: ✭ 91
Programming Languages
javascript
184084 projects - #8 most used programming language
Stream Example App
This example Node.js app shows you how you can use GetStream.io to built a site similar to Pinterest.
Install
npm install
Prepare
You'll need a mongodb instance running in the background.
Example using Homebrew on MacOS
brew install mongodb
mkdir data
mongod --dbpath=./data
Or set up the URI to a remote one by modifying config/config.js.
Load initial data
The app needs some initial data in order to function correctly. Run this script to load it:
./after_deploy.js
Run
npm start
Using GitHub to Sign/Log in
Initially, the app starts with the authentication user mocked, if you want to sign in and out using your GitHub account, you'll need to set up a GitHub app and modify config/config.js to use your app's client credentials.
You will also need to comment out in app.js, the middleware that mocks the authentication process like so:
// app.use(passport_mock.initialize());
app.use(passport.initialize());
app.use(passport.session());
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].