项目作者: bdmessenger

项目描述 :
Voting application for FreeCodeCamp
高级语言: JavaScript
项目地址: git://github.com/bdmessenger/react-voting-app.git
创建时间: 2020-08-29T17:46:42Z
项目社区:https://github.com/bdmessenger/react-voting-app

开源协议:

下载


React Voting Application

SQL is required. Didn’t provide MongoDB setup.

First, install packages:

  1. npm install
  2. npm install -D

Development

You’ll need to create a .env file in the root directory.

  1. .env:
  2.  
  3. TWITTER_CONSUMER_KEY='INSERT_KEY_HERE'
  4.  
  5. CONSUMER_SECRET='INSERT_SECRET_HERE'
  6.  
  7. COOKIE_KEY='custom_cookie_key'
  8.  
  9. NODE_ENV='development'

For the authentication to function, you’ll need to look into Twitter Developer’s documentation
and go through the process to generate the key and secret for your application which you’ll also need to
provide a callback url when configuring your app on Twitter’s Developer Portal page.

The application is using this callback URL: http://localhost:8080/auth/twitter/redirect

Start Development:

  1. npm run dev