Live version url: https://agile-thicket-44316.herokuapp.com/
Figure 1: Homepage
- Go to https://developer.twitter.com/, sign in or sign up, then create a new project and get your credentials by clicking the
Keys and Tokens
tab of your app dashboard. You will also need to make a Google project with OAuth2 credentials, more info on that here - Clone master branch git repo
- Follow instructions for enabling HTTPS on localhost by following this guide
- run
mkdir certs
in the project root directory, addserver.key
andserver.crt
from step 3 tocerts
folder. - create a
.env
file in the project root directory and add the following variables:
CONSUMERKEY
: this should contain the API key value obtained from step 1CONSUMERSECRET
: this should contain the API secret key value obtained from step 1ACCESSTOKEN
: this should contain the Access token value obtained from step 1ACCESSTOKENSECRET
: this should contain the Access token secret value obtained from step 1SESSIONSECRET
: this should contain any string of your choosing, it's for express sessions.GOOGLE_CLIENT_ID
: this should contain your Google client id, found in your Google Cloud Console,Credentials
section.GOOGLE_CLIENT_SECRET
: this should contain your Google client secret.GOOGLE_REDIRECT_URI
: this should contain your Google redirect URI.
- navigate to the root directory and run
npm install
- run
npm start
in root directory to start backend - navigate to
client
folder and runnpm run start:dev
to start front-end client - Then run npm install in the console
- Finally npm start to start the server
Google Scopes for the project: https://mail.google.com/ https://www.googleapis.com/auth/gmail.compose