Please enable JavaScript.
Coggle requires JavaScript to display documents.
BACKEND (routes (api (api_v2 = with json output (react-native), template…
BACKEND
routes
base user hack in routes.rb
admin = for administation
api
api_v2 = with json output (react-native)
template.json.builder (api response schema)
api_v1 = with json output
legacy = all other routes
acl + auth
ability.rb = (acl groups used in controller)
authorize! :read Efile (for example) example from elies_controller.rb
login = auth methods
jwt and other authentification method are in devise.rb
(60 minut in browser)
json_web_token.rb (example of method)
code running
public folder is exposed to nginx
contains all assets
javascript files included
workers
run in background
cron are set in schedule.yml.sample (crontab alternative)
small independ without dependencies
crons whitch run in sidekik
env
RAILS_ENV = sand
RAILS_ENV = production
data
postgress
orm + migration
a lot of logic are in controller and models. Rewrite to (facades/services)!
import
we can import users and activities via csv file and download the template in administration.
libs
Sidekiq
-
youtube tutorial
Monitoring
API