Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ericmbouwe/automated-tweets

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
https://github.com/ericmbouwe/automated-tweets

bootstrap4 jobs rails6 scheduler

Last synced: 13 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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