Search engine para desafio JusBrasil, React-flavored.
- Run
npm install
- Run
npm start
- Run
npm server
- Navigate to
http://localhost:3000/
- Best viewed in recent versions of Google Chrome.
- If you are running the server locally, you may need to disable Chrome Web Security on your instance so the local elasticsearch client can talk to the elastic API on the dedicated server. Click for more information. Naturally the live demo does not present this issue.
###Endpoints
curl -X POST http://localhost:3000/entities -d '{"title": "Some title", "type": "TOPIC”}
curl -XGET http://localhost:3000/entities/?q=som
curl -XGET http://localhost:3000/entities/?q=som&entitytype=topic
###searchngin.herokuapp.com API in demo is at https://searchngin.herokuapp.com/entities
npm test