Voting application for FreeCodeCamp
SQL is required. Didn’t provide MongoDB setup.
First, install packages:
npm install
npm install -D
You’ll need to create a .env file in the root directory.
- .env:
- TWITTER_CONSUMER_KEY='INSERT_KEY_HERE'
- CONSUMER_SECRET='INSERT_SECRET_HERE'
- COOKIE_KEY='custom_cookie_key'
- 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:
npm run dev