Skip to content
This repository was archived by the owner on Oct 5, 2019. It is now read-only.

c0ff33un/backendMe-Me

Repository files navigation

README ME-ME

Ruby version: 2.5.3

System dependencies

  • None

Configuration

Notes

Keys configuration

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

Docs

Auth using devise, jwt-devise and argon2:

PDFS

Note: it is necessary to satisfy some rmagick dependencies on the server, otherwise rmagick won't work

Mailer

AWS rekognition API

We use this api to filter out images with sexual content

Cron tasks

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

Database creation

To-do

Database initialization

rails db:migrate
rails db:seed

How to run the test suite

Useful information:

Gem for stubbing and mocking with minitest

Oauth

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

Services (job queues, cache servers, search engines, etc.)

To-do

Deployment instructions

Pushing non master branch to heroku

First:

git push heroku feature/<feature>:master

and then,

git push -f heroku master:master

when you want to push again actual master.

Recreating database on heroku

db:schema:load
db:structure:load or db:migraterake db:migrate

Contributing

git clone https://github.com/c0ff33un/backendMe-Me.git

git flow feature start <feature_name>

How to make the perfect Oatmeal - What to do while we wait the deadline :'(

  1. Ingredients/Utensils
    1. A pan
    2. Milk
    3. Water
    4. Salt
    5. Sugar
    6. Cinnamon
    7. Oatmeal(Obviously :v)
    8. Someone who prepares it (Miguel).
  2. 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.

Result

Enjoy!!! Wait for more images in the next iteration

  • Recipe by: Miguel Angel Ortiz
  • The one who ate it: Edwin Ricardo Mahecha ...

Tunes to hear and cry due a unsuccessful iteration

About

Backend Repo for Me-Me app

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors