Skip to content

lylo/pagecord

Repository files navigation

Pagecord

Publish your writing effortlessly by sending an email.

Development

To set up your development environment, install Ruby 3.3+ using HomeBrew and rbenv.

Then checkout this repository and run:

git clone https://github.com/lylo/pagecord.git
cd pagecord
bundle install

Setting up the database

Before you run the app in development, first set up the database:

rails db:setup

Install Redis

Pagecord uses Sidekiq, which uses Redis.

brew install redis

Running the app

bin/dev

Running the tests

The app is tested using the Rails standard, minitest. To run the tests, use the following commands:

bin/rails test
bin/rails test:system

Processing an email locally

Sometimes you'll need to debug emails. To do this, save the .eml file(s) to a folder such as tmp/emails.

You can then run the following command which will parse all the .eml files in that folder and create posts for the first user account in the seed data (joel@pagecord.com).

DIR=tmp/emails rake email:load

More info

Read about the Pagecord architecture or making contributions.

Follow the Pagecord blog.

Buy Me A Coffee