Coder Social home page Coder Social logo

searcher's Introduction

Buscador

Descrição

Dado uma sentença, o buscador irá procurar em uma massa de dados quais os arquivos que a possuem.
No momento da execução a massa de dados é preparada e separada em um arquivo .json, que conterá todas as informações de forma organizada.
O objetivo principal foi criar um código simples e elegante, utilizando as features que a linguagem oferece. Com uma escrita que qualquer pessoa consiga entender com facilidade, de forma desacoplada, testável e de fácil manutenção.

Instalação

clonando o repositório:

$ git clone https://github.com/codingwithmath/searcher.git && cd /searcher

rodando o projeto:

$ node search.js "pesquisa_que_deseja_relizar"

exemplo:

comando:

$ node search.js "george lucas"

resultado:

Foram encontradas 11 ocorrências.
Os arquivos que possuem george lucas são:
01-42-1.txt
captain-eo.txt
electronic-labyrinth-thx-1138-4eb.txt
merry-in-laws.txt
milius.txt
more-american-graffiti.txt
star-wars-the-clone-wars-darth-maul-returns.txt
star-wars-the-legacy-revealed.txt
the-beginning-making-episode-i.txt
the-people-vs-george-lucas.txt
within-a-minute-the-making-of-episode-iii.txt

Testes

instalando o jest:

$ npm install

rodando os testes:

$ npm run test

cobertura de testes:

$ npm run coverage

searcher's People

Stargazers

Roman avatar

Watchers

Matheus Almeida 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.