https://github.com/tsamaya/passport-example-with-twitter
a Passport example using an Express with Twitter
https://github.com/tsamaya/passport-example-with-twitter
bulma express javascript oauth passport tutorial twitter
Last synced: about 2 months ago
JSON representation
a Passport example using an Express with Twitter
- Host: GitHub
- URL: https://github.com/tsamaya/passport-example-with-twitter
- Owner: tsamaya
- License: mit
- Created: 2018-03-19T20:42:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T18:36:29.000Z (over 3 years ago)
- Last Synced: 2025-02-26T12:17:14.234Z (over 1 year ago)
- Topics: bulma, express, javascript, oauth, passport, tutorial, twitter
- Language: JavaScript
- Homepage:
- Size: 111 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# passport-example-with-twitter
This repository is a [Passport](http://www.passportjs.org/) example using an [Express](http://expressjs.com/) application with an authentication using Twitter.
## Usage
#### Create an Twitter application
First, create an application at [https://apps.twitter.com](https://apps.twitter.com)
#### Configure Strategy
create a `.env` file with:
```
TWITTER_CONSUMER_KEY=YOUR-TWITTER-CONSUMER-KEY
TWITTER_CONSUMER_SECRET=YOUR-TWITTER-CONSUMER-SECRET
```
#### Install dependencies
```sh
$ npm install
```
or
```sh
$ yarn
```
#### Run
```sh
$ npm start
```
or
```sh
$ yarn start
```
open your browser on [127.0.0.1:3000](http://127.0.0.1:3000)
## Resources
- Passport [Twitter example](https://github.com/passport/express-4.x-twitter-example) from [@jaredhanson](https://github.com/jaredhanson)
- [Bulma](https://bulma.io/) CSS framework based on Flexbox, from [@jgthms](https://github.com/jgthms)
## Contributing
Anyone and everyone is very welcome to contribute.
## Issues
Find a bug or want to request a new feature? Please let me know by submitting an issue.
## Licensing
Licensed under the MIT License
A copy of the license is available in the repository's [LICENSE](LICENSE) file.