Skip to content

gipsycloud/flat_character

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlatMate Character

Every 3 minutes someone finds a flatmate on SpareRoom. With the biggest selection of ads, you'll find yours.

Tech Stack

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

Appendix

  • 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

Features

  • Coming Soon

Run Locally

Clone the project

  git clone https://link-to-project

Go to the project directory

  cd my-project

Install dependencies

   bundle install
   rails assets:precompile

Start the server

   foreman start

Acknowledgements

Rails Knowledge

Tailwind

Icon

DateTime Field custom CSS

Devise

Image Upload

CanCanCan

User Profile

Notification

Search Function

Background Job

Docker Comment Lines

JWT Token

Rails Comment Lines

MapBox View

Mention User (@sample)

Logs into

Command Line

  sudo docker builder prune

update 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 up

ActiveSupport::MessageEncryptor::InvalidMessage

  1. rm -rf config/credentials.yml.enc
  2. EDITOR=vim rails credentials:edit

JWT_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 :5432

Mailer Preview

http://localhost:3000/rails/mailers/subscription_mailer/new_room_notification

API Reference

Get all items

  ### 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 item

  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

add(num1, num2)

Takes two numbers and returns the sum.

License

MIT

Support

For support, email fake@fake.com or join our Slack channel.

Authors

temp text

Design view

About

Find flatmate within 5 minutes.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published