- Generated New Rails App
- Setup Gemfile for Test Suite
- Configured RSpec, Shoulda, Capybara etc...
- Integration tests for Account Creation
- Account Model Specs with Subdomain Validations
- Integration tests for User Authentication
- Integration tests for Subdomain Bifurcation
- Configured Apartment for Multitenancy
- Accounts with Schemas
- Accounts with Subdomains
- Subdomains routing configurations
- Cloudflare for Subdomains
- For Production, you need to grant your postgres user privileges to create schemas on the fly
postgres=# GRANT CREATE ON DATABASE db_name TO db_user;
- For live subdomain usage, add Cloudflare API keys and details to secrets.yml
- PostgreSQL is mandatory
- For Development, use POW server or lvh.me:3000
Aim: Learning RSpec and Testing on Rails
Aniket Rao