Skip to content

This app is a tweet scheduler that allows you to connect your Twitter account and send tweets at a specific time. You can edit the schedule or delete it. It is built with Rails 6, Erb, and Boostrap 4

Notifications You must be signed in to change notification settings

EricMbouwe/automated-tweets

Repository files navigation

README

This README would normally document whatever steps are necessary to get the application up and running.

  • ...

Make a change in the migration file (database table)

  • make the change in the previous migration file
  • run rails db:rollback
  • run rails db:migrate
  • Or run rails db:migrate:redo to run the two command in one

Generate Password mailer for reset instructions

  • run rails g mailer Password reset

Storing credentials securely

  • run rails credentials:edit --environement=development

  • edit the opened file twitter: api_key: key api_secret: key

Get the stored keys

  • run rails c
  • run Rails.application.credentials
  • run this for a specific key Rails.application.credentials.dig(:twitter, :api_key)

Add omniauth gem

-run bundle add omniauth-twitter -run bundle add omniauth-twitter omniauth-rails_csrf_protection

Add omniauth middleware to the app

  • open /initializer folder
  • create omniauth.rb file
  • add the keys

About

This app is a tweet scheduler that allows you to connect your Twitter account and send tweets at a specific time. You can edit the schedule or delete it. It is built with Rails 6, Erb, and Boostrap 4

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published