Click on the edit button and change the given settings.
- Allow the "Read and Write" permission in the "App Permission" Section.
- Select the "Web App, Automated App, or Bot" in "Type of App" section.
- Add this Callback Url in App info section and any Website Url in the website url input.
http://127.0.0.1:5000/callback
3. Create a Supabase App here
Setup Database and authentication with Emails.
Make sure your name matches the name of the above images.
After Deployment, make sure you disable Sign Up after signing in yourself otherwise others can also Sign Up to your application.
git clone https://github.com/kubesimplify/kubetweet.git
cd kubetweet
cd frontend
npm install
cd ../backend
npm install
Create a .env
file in your backend folder and add the following data.
CLIENT_ID = <YOUR_TWITTER_CLIENT_ID>
CLIENT_SECRET = <YOUR_TWITTER_CLIENT_SECRET>
BEARER_TOKEN = <YOUR_TWITTER_BEARER_TOKEN>
SUPABASE_PROJECT_URL= <YOUR_SUPABASE_PROJECT_URL>
SUPABASE_PROJECT_ANON_API_KEY= <YOUR_SUPABASE_PROJECT_ANON_KEY>
You can get your Twitter User Id from here in case you don't know.
Run the backend server by using these commands
npm start
or
npm run dev
Go to http://localhost:5000/auth and Click on Authorise and it will Authorise your project to post Tweets and it will redirect you to Callback Url.
Our Backend is ready now 🥳
Add the following lines
REACT_APP_SUPABASE_URL= <YOUR_SUPABASE_PROJECT_URL>
REACT_APP_SUPABASE_ANON_KEY= <YOUR_SUPABASE_PROJECT_ANON_KEY>
Open another terminal and run your frontend application.
npm start
Our Frontend is also ready 🥳🥳.
Make sure your both frontend and backend Application is running.
- Change the Deployed Backend Url in
frontend/src/constants/constant.js
folder. - Add the Deployed frontend Url in
backend/server.js
in whitelist on line 12 and remove others Urls.