- None
For development a .env file in root folder with DEVISE_JWT_SECRET_KEY defined is needed. It can be generated with: bundle exec rake secret
in file .env found in root
DEVISE_JWT_SECRET_KEY=token_from_bundle_secret
If routes are changed make sure to check initializers/devise.rb
Note: Remember to add the respective keys when using aws or another storage service
- quick devise and devise-jwt config
- basic devise config
- setting up argon2 for devise
- basic devise-jwt config step 1
- basic devise-jwt config step 2
- advanced custom devise controller
- prawn
- gruff, library to generate graphs
- rmagick, we need it to use gruff
- Thread that explains how to use gruff alongside prawn
Note: it is necessary to satisfy some rmagick dependencies on the server, otherwise rmagick won't work
We use this api to filter out images with sexual content
We are storing all the logs in this path, please change it schedule.rb file to avoid problems
set :output, '~/Git/backendMe-Me/tmp/crons.log'
Heroku does not have crons, instead it offers its own scheduler
To-do
rails db:migrate
rails db:seed
Useful information:
- getting started with minitest
- mocking in ruby with minitest
- how to test rails models with minitest
- active storage stubbing with mocha
Gem for stubbing and mocking with minitest
Guide used loosely based on devise-oauth politics:
Note that this is the flow we must follow in our case because we are developing a mobile app. For web applications it is better to use one of the devise-omniauth avialable politics.
Also remeber to add the dispatch in the devise.rb file in order to receive a jwt authorization token
To-do
First:
git push heroku feature/<feature>:master
and then,
git push -f heroku master:master
when you want to push again actual master.
db:schema:load
db:structure:load or db:migraterake db:migrate
git clone https://github.com/c0ff33un/backendMe-Me.git
git flow feature start <feature_name>
- Ingredients/Utensils
- A pan
- Milk
- Water
- Salt
- Sugar
- Cinnamon
- Oatmeal(Obviously :v)
- Someone who prepares it (Miguel).
- Instructions 9. Pour 1/2 vase of water and 1/2 vase milk into the pan. 10. Boil it while adding the following ingredients. 1. Add a little salt. 2. Add a little sugar 3. Add cinnamon to taste. 11. Finally add the Oatmeal. 12. Let it boil until it dries a bit.
Enjoy!!! Wait for more images in the next iteration
- Recipe by: Miguel Angel Ortiz
- The one who ate it: Edwin Ricardo Mahecha ...
