samuelralak / cds

Classic Directory Service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cds

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.create && mix ecto.migrate
  • Install Node.js dependencies with cd assets && npm install
  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000 from your browser.

Search API

Production Endpoint

https://cds-classic.herokuapp.com/

Development Endpoint

http://localhost:4000

Request

curl -X GET \
  'https://cds-classic.herokuapp.com/api/search?query=text' \
  -H 'accept: application/json' \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json'

Response

{
    "query": "text",
    "data": [
        {
            "website_url": "elec.coom",
            "phone_number": "9412274444",
            "name": "Sam Electronics",
            "id": 1,
            "email": "samuelralak@hotmail.com",
            "description": "Awesome Text that will be searched here",
            "address": "P.O. Box 99656"
        }
    ]
}

About

Classic Directory Service


Languages

Language:Elixir 77.9%Language:HTML 14.9%Language:JavaScript 7.2%Language:CSS 0.1%