Every 3 minutes someone finds a flatmate on SpareRoom. With the biggest selection of ads, you'll find yours.
Client: HTML, CSS, TailwindCSS, Javascript, jQuery, Ajax
Server: Ruby on Rails, Postgresql, Redis, Sidekiq, Delay Job
Cloud Service: Cloudinary
Host: Render Server
Version Control: rbenv, asdf, git, github
Node: npm install or yarn install
Dev Operation: Docker, Jenkins
Analysis: Google Analysis, Datadog
Manage: Foreman
-
ruby 3.2.1 (2023-02-08 revision 31819e82c8)
-
Rails 7.0.8
-
System dependencies [x86_64-linux]
-
Configuration hotwire, cloudinary (coming soon)
-
Database creation (Postgresql)
-
Database initialization https://www.datadoghq.com/
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.) (comming soon)
-
Deployment instructions (rails s or bin/dev or foreman start)
-
stopping of mailcatcher sudo lsof -nP -iTCP:1025 -sTCP:LISTEN
- Coming Soon
Clone the project
git clone https://link-to-projectGo to the project directory
cd my-projectInstall dependencies
bundle install rails assets:precompileStart the server
foreman start- Tailwind CSS, Flowbite Components
- Tailwind CSS Breadcrumbs
- Tailwindcomponents Cheatsheet
- Tailwind CSS Ruby on Rails
- Swiper
- SmartLook
- HyperUI
- Live Chat (Brevo.com)
- ClouDNS
- Readme Editor
- Ruby Style Guide
- How to Use Form_with
- About Form_with
Tailwind
Icon
DateTime Field custom CSS
Devise
Image Upload
- Multiple Upload Image with CarrierWave
- DatatypeMismatch: ERROR: in rails (in migration)
- fixing for null image data auto saving to database for multiple upload using Carrierwave gem
- Uploading Multiple Images using CarrierWave
- CarrierWave Upload Multiple Images
- Carrierwave, Rails 4, and Multiple Uploads
- Uploading multiple files with Carrierwave in Rails 4
- Upload Multiple Files in Rails API using CarrierWave
CanCanCan
- temp_authorized_webpage_for_cancancan
- Controlling authorization in rails with CanCanCan gem
- Authorization Gems in Ruby: Pundit and CanCanCan
User Profile
Notification
Search Function
Background Job
- Clear Docker Cache
- viewing database with docker
- Docker Basics for Ruby on Rails Developers
- My Docker Cheat Sheet
- Docker & Postgres: Failed to bind tcp 0.0.0.0:5432 address already in use
- push a docker image to a private repository
- A Step-by-Step guide to Build and Push Your Own Docker Images to DockerHub
- Docker: Redis no config file specified
sudo docker builder pruneupdate code
docker build -t hotfix .
docker images
docker run -d -p 3000:3000 <image_id>
docker ps
# docker run -dp 127.0.0.1:3000:3000 hotfix
docker compose upActiveSupport::MessageEncryptor::InvalidMessage
1. rm -rf config/credentials.yml.enc
2. EDITOR=vim rails credentials:editJWT_SECRET_KEY
1. rails secret
2. EDITOR="nano" bin/rails credentials:edit Identify what is running in port 5432: sudo lsof -i :5432
Kill all the processes that are running under this port: sudo kill -9 <pid>
Run the command again to verify no process is running now: sudo lsof -i :5432http://localhost:3000/rails/mailers/subscription_mailer/new_room_notification
### base_url: http://localhost
POST {{base_url}}/api/v1/login| Parameter | Type | Description |
|---|---|---|
email_field |
email |
Required. Your API key |
password_field |
password |
Required. Your API key |
GET /api/v1/rooms/rooms
GET /api/v1/rooms/rooms/${id}
Headers
Key: Authorization
Value: Token
| Parameter | Type | Description |
|---|---|---|
id |
string |
Required. Id of item to fetch |
Takes two numbers and returns the sum.
For support, email fake@fake.com or join our Slack channel.