Code Monkey home page Code Monkey logo

eulersearch's Introduction

Project Euler Search

The goal of this project is to create simple web app that enables searching projectEuler problems using key words by scrapping the website and putting the problems in an Elasticsearch database.

####Set up

  1. Download and install/start Elasticsearch you should read the user guide also if you konw nothing of Elasticsearch
  2. Create the index needed for application, I procide two methods for this
    1. If you have a mac of Linux machine
      • then you could copy the line in src/main/resources/elasticsearchSetup/mappingCurlCommand.txt
      • past the line in terminal. Press the Enter key
      • You should get a response like this {"acknowledged":true,"shards_acknowledged":true} if everything went right.
    2. If you have a Windows machine or do not want to use the command line for some reason
      • Use the Postman plugin for Chrome
      • type '127.0.0.1:9200/euler' in the place for the url
      • make the request a 'PUT'
      • click on 'body'
      • click 'raw'
      • from the drop down menu select 'application/json'
      • copy and past the content from src/main/resources/elasticsearchSetUp/euler.json
      • click send
      • you should get a '200 Ok' response if everything went right

####Testing

  1. Use an IDE to run tests or on the command line run the command 'mvn test'
    • Tests will assume that you have elastic search running on localhost with transport client on port 9200
    • One way to override with url and port is as follows
    • -Des.port=9200 to override the port use, replace 9200 with the port you want to use
    • -Des.url=127.0.0.1 to override the url used, replace 127.0.0.1 with the url you want to use

eulersearch's People

Contributors

daniel-z-johnson avatar

Watchers

James Cloos avatar  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.