Giter Club home page Giter Club logo

fuzzy-octo-chainsaw's Introduction

Desafio para vaga de BackEnd - Foco em Ruby On Rails:

Entrega:

No README.md descreva as instruções sobre como executar o projeto, configurar variáveis de ambiente e executar os testes. Ao finalizar, forneça um link para o repositório do GitHub contendo o código-fonte e a documentação, enviado para o email vagas{at}oxeanbits{dot}com

How to Run This Project

This project has 3 diffent disctinct 3 parts: Before everything it is necessary to run the following commands:

      bundle install
      rails db:migrate
      rails db:seed

1 - Docker This is the Redis component necessary to run Sideqik. To execute it you need the docker app in your local machine. If you already have Docker installed, you can just:

  docker-compose up -d

2 - Sideqik This is the Redis component necessary to run the tasks in second plane. To execute it you need the Sideqik gem in your local machine. If you already have Sideqik installed, you can just:

    bundle exec sidekiq

3 - Run the Ruby on Rails application

    rails server

How to Batch Add New Movies

I took a decision to add a button to the top of the page to add new movies using a .json file. You can either login and click on the "Batch Movies" on the top left of the page or access it directly using "http://localhost:3000/movies/movies-batch". I provided a example file in this file. Just select it in the pop-up window and it will be loaded. The movied will be qeued up on sideqik and added to the list of movies.

How to run the tests

To run the tests symply run:

  bundle exec rake test:prepare 
  bundle exec rake db:test:prepare
  bundle exec rake db:migrate
  bundle exec rspec

fuzzy-octo-chainsaw's People

Contributors

rezendevictor avatar marinofull avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.