https://github.com/zencephalon/supfam-rails-api
https://github.com/zencephalon/supfam-rails-api
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zencephalon/supfam-rails-api
- Owner: zencephalon
- Created: 2020-03-09T21:19:10.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-09-20T17:43:01.000Z (almost 2 years ago)
- Last Synced: 2025-01-16T21:41:59.831Z (over 1 year ago)
- Language: Ruby
- Size: 2.17 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
## Next up
## Later
Use `User.where("users.phone IN (?)", ["+19522015076", "+19522015077"])` kind of stuff to deal with Contacts upload checking.
## Notes
When changing a friendship we also need to update the corresponding DM's conversationMembership's profile. #denormalization
Kind of sad that we can use ActiveRecord:Enum to define the status colors because I nested it in a JSON object. Maybe we'll want
to break that object up into separate columns on Profile one day.
## Security
* Consider doing encryption at rest
## Running
`heroku local -f Procfile.dev`
## Setup
### Install Redis
`brew install redis`
`brew services start redis`
### Install libIDN
`brew install libidn`
### Install Heroku
`brew tap heroku/brew && brew install heroku`
### Install Ruby version
Consider using `asdf` instead of `rvm`.
`rvm install 2.6.3`
`rvm use 2.6.3`
### Install anycable-go
`brew install anycable-go`
### Install Postgres
I recommend installing https://postgresapp.com/
`bundle`
`bundle exec rails db:create`
`bundle exec rails db:migrate`
`bundle exec rails db:seed`
`heroku local`
## Typechecking with Sorbet
`bundle exec srb tc`