Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 19 days ago
JSON representation

a Passport example using an Express with Twitter

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.