• Stars
    star
    547
  • Rank 81,254 (Top 2 %)
  • Language
    Ruby
  • License
    MIT License
  • Created about 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The reverse job board for Ruby on Rails developers.

RailsDevs

The reverse job board for Rails developers.

RailsDevs homepage

RailsDevs empowers independent developers available for their next gig. It is being built around three core values:

  1. Empowering the independent developer
  2. Doing everything in public
  3. Creating a safe, inclusive environment

Getting started

Requirements

You will need a few non-Ruby packages installed. Install these at once via:

brew bundle install --no-upgrade

...or manually:

  • Ruby 3.1.2
  • libpq - brew install libpq
    • libpg is needed to use the native pg gem without Rosetta on M1 macs
  • postgresql - brew install postgresql
    • Note 1: PostgreSQL 13+ is required
    • Note 2: In case you're on Debian 11 and you have multiple versions (e.g. 9.x, 12.x, 14.x) of PostgreSQL installed, make sure that the server of the right version (13+) is listening on port 5432. One could check/modify that in the postgresql.conf file, e.g. in case of version 13: /etc/postgresql/13/main/postgresql.conf.
  • node - brew install node
  • Yarn - brew install yarn
  • Redis - brew install redis
  • Imagemagick - brew install imagemagick
  • libvips - brew install vips
  • Stripe CLI - brew install stripe/stripe-cli/stripe
  • foreman - gem install foreman
  • Google Chrome + Chromedriver for system tests - brew install --cask google-chrome chromedriver

Initial setup

Start the PostgreSQL server.

brew services start postgresql

Start the Redis server.

brew services start redis

An installation script is included with the repository that will automatically get the application set up.

bin/setup

Development

Run the following to start the server and automatically build assets.

  • Requires foreman or overmind
  • Requires stripe
bin/dev

Seeds

Seeding the database, either via rails db:seed or during bin/setup, creates a few accounts. Most importantly, use [email protected] and [email protected] with password password.

More information is in the docs on seeds.

Stripe

You will need to configure Stripe or do a mock configuration (ie set dummy values for the last step listed below) if you are working on anything related to payments.

  1. Register for Stripe and add an account
  2. Download the Stripe CLI via brew install stripe/stripe-cli/stripe
  3. Login to the Stripe CLI via stripe login
  4. Configure your development credentials
    1. Create a Stripe secret key for test mode
    2. Run stripe listen --forward-to localhost:3000/pay/webhooks/stripe in order to generate your webhook signing secret.
    3. Create a product with a recurring, monthly price
    4. Generate your editable development credentials file via EDITOR="mate --wait" bin/rails credentials:edit --environment development. You may need to install and provide terminal access to the editor first (mate, subl, and atom should all work). If you run the code above and receive the message "New credentials encrypted and saved", without having had the opportunity to edit the file first, things have gone astray. You will need to troubleshoot this step based on your OS and desired editor, to ensure you can edit the development.yml file before it is encoded and saved. See here for more details.
    5. Add the secret key, the price, and your webhook signing secret to your development credentials in the following format, and save/close the file:
stripe:
  private_key: sk_test_YOUR_TEST_STRIPE_KEY
  signing_secret: whsec_YOUR_SIGNING_SECRET
  price_ids:
    part_time: price_YOUR_PRODUCT_PRICE_ID
    full_time: price_ANOTHER_PRODUCT_PRICE_ID

Monitoring

Application monitoring is powered by Scout APM. This helps identify N+1 queries, slow queries, memory bloats, and more. Scout APM is free for open source.

Testing

  • Run rails test to run unit/integration tests.
  • Run rails test:system to run system tests, using headless_chrome.
  • Run HEADFUL=1 rails test:system to run system tests, using headful_chrome.

Changelog

Significant changes and product updates are documented in the changelog.

License

All code and documentation are copyright 2023 Joe Masilotti under the MIT license.

All other resources including, but not limited to, images, copy, and branding, are copyright 2023 Joe Masilotti and used by permission for this project only.

Open source support

RailsDevs uses a free or discounted open-source plan from the following companies. Thank you for the support!

Scout APM – application monitoring

Scout APM logo

Papertrail – log management

Papertrail logo

More Repositories

1

UI-Testing-Cheat-Sheet

How do I test this with UI Testing?
Swift
2,147
star
2

TestingNSURLSession

Accompaniment to a series of blog posts covering how to test NSURLSession with Swift.
Swift
48
star
3

masilotti.com

Source for masilotti.com, built with Bridgetown and Tailwind CSS.
HTML
41
star
4

HTTP-Client

A barebones Swift HTTP client with automatic JSON response parsing.
Swift
30
star
5

JAMTestHelper

A few additions to XCTest geared towards UI Testing in Xcode 7 and iOS 9.
Swift
23
star
6

ios-feature-testing

A comparison of the current iOS feature testing frameworks available.
23
star
7

Ruka

Testing the UI without UI Testing, a Swift experiment.
Swift
20
star
8

PebCiti

A simple Pebble app to show the nearest available CitiBike NYC dock.
19
star
9

TailwindCSS-SwiftUI

TailwindCSS colors for SwiftUI.
Swift
18
star
10

x-wing-ai-tailwind

A landing page built with Tailwind CSS for my iOS app, X-Wing AI.
CSS
14
star
11

CustomHeightPresentationController

A presentation wrapper to show a controller that doesn't fill the full screen.
Swift
13
star
12

try-Swift-UI-Testing-stubbing-the-network

Source code for my "UI Testing: stubbing the network" workshop at the 2020 try Swift! World conference.
Swift
8
star
13

Turbo-iOS-Demo

Swift
8
star
14

UIPickerViewTester

How to interact with a UIPickerView using UI Testing in Xcode 7.
Swift
6
star
15

portland-heritage-trees

Swift
4
star
16

git-auto-tagger

Tag commits based on a YAML file.
Ruby
4
star
17

Turbo-Native-demo

Accompanying code for my "Turbo Native in 15 minutes" video.
Swift
3
star
18

try-Swift-UI-Testing-an-introduction

Source code for my "UI Testing: an introduction" workshop at the 2020 try Swift! World conference.
Swift
2
star
19

Launch-Tester

Swift
1
star
20

turbo-auth-swift

Swift
1
star
21

joemasilotti

Joe Masilotti's GitHub profile.
1
star
22

PebCiti-iOS

iOS half of PebCiti, a simple app to show the nearest available CitiBike NYC dock on your Pebble.
Objective-C
1
star
23

turbo-auth-rails

Ruby
1
star