https://github.com/genfirst/react-node-twitter-login
Demo application that shows how to enable Twitter login with React on frontend and Node.js/Express on backend
https://github.com/genfirst/react-node-twitter-login
mongodb mongoose nodejs passport passport-twitter passportjs react reactjs
Last synced: 4 months ago
JSON representation
Demo application that shows how to enable Twitter login with React on frontend and Node.js/Express on backend
- Host: GitHub
- URL: https://github.com/genfirst/react-node-twitter-login
- Owner: GenFirst
- License: mit
- Created: 2017-07-12T20:42:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-19T09:20:07.000Z (almost 8 years ago)
- Last Synced: 2025-04-12T18:57:06.363Z (8 months ago)
- Topics: mongodb, mongoose, nodejs, passport, passport-twitter, passportjs, react, reactjs
- Language: JavaScript
- Homepage:
- Size: 138 KB
- Stars: 41
- Watchers: 3
- Forks: 21
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-node-twitter-login
Demo application that shows how implement Twitter login with React on frontend and Node.js/Express on backend that is implementing REST API.
# About
This application was created as material that is described in the [blog post](https://medium.com/@robince885/how-to-do-twitter-authentication-with-react-and-restful-api-e525f30c62bb).
For creating React app we have used [create-react-app](https://github.com/facebookincubator/create-react-app).
# What you need to install
* [Node.js](https://nodejs.org/en/)
* [create-react-app](https://github.com/facebookincubator/create-react-app)
* [Gulp](http://gulpjs.com/)
* [MongoDB](https://www.mongodb.com/)
# How To Start Application?
* Start MongoDB - our application expects that there is `twitter-demo` database in MongoDB
* Put Twitter secret and key in [twitter.config.js](https://github.com/GenFirst/react-node-twitter-login/blob/master/backend/twitter.config.js) and
* Go to [frontend](https://github.com/GenFirst/react-node-twitter-login/tree/master/frontend) folder
* `npm install`
* `npm start`
* Go to [backend](https://github.com/GenFirst/react-node-twitter-login/tree/master/backend) folder
* `npm install`
* `gulp develop`
# License
react-node-twitter-login is released under [MIT License](https://opensource.org/licenses/MIT).