Skip to content

Latest commit

 

History

History
93 lines (81 loc) · 1.46 KB

File metadata and controls

93 lines (81 loc) · 1.46 KB

Programming Challenge 1B

Proposed solution to Programming Challenge 1B. The system must receive a file with sales, parse it and ingest the data.

Dependencies

  1. Ruby 2.5
  2. Rails 5.1.3
  3. SQlite 3

Instructions to install and run it

  1. Make clone of the repository
git clone https://github.com/emerayo/desafio-programacao-1b.git
  1. Open the folder where the clone is located
cd desafio-programacao-1b
  1. Install dependencies
bundle install
  1. Setup the database
rails db:create
  1. Run the migrations
rails db:migrate
  1. Start the server
rails s
  1. Open the page on the browser
http://localhost:3000
  1. To run the tests
rspec ./spec/

Português

Desafio de programação 1B

Desenvolvimento da solução do Desafio de Programação 1B. O sistema deve receber um arquivo com vendas, tratá-lo e realizar a ingestão dos dados.

Dependências

  1. Ruby 2.5
  2. Rails 5.1.3
  3. SQlite 3

Instruções para instalação e execução

  1. Faça o clone do repositório
git clone https://github.com/emerayo/desafio-programacao-1b.git
  1. Abra o diretório onde o clone se encontra
cd desafio-programacao-1b
  1. Instale as dependências
bundle install
  1. Crie o banco de dados
rails db:create
  1. Rode as migrações
rails db:migrate
  1. Inicialize o servidor
rails s
  1. Abra a página no navegador
http://localhost:3000
  1. Para rodar os testes
rspec ./spec/