Skip to content

cmajsmith/smart-search-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart Search Algorithm

Setup

  1. Clone the repository.
  2. Install dependencies:
npm install
  1. Create .env file and add connection information for database. Use the following template:
POSTGRES_USER=SmartSearchUser
POSTGRES_PASSWORD=SmartSearchPassword
POSTGRES_DB=smart_search_db
POSTGRES_HOST=localhost
POSTGRES_PORT=5432

DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
  1. (Optional) Start a PostgreSQL server using Docker (Docker and Docker Compose required):
docker-compose up -d

Usage

DB Management

Create DB:

npm run db:create

Drop DB:

npm run db:drop

Migrate DB:

npm run db:migrate

Seed DB:

 npm run db:seed:all

Start the application:

npm run start

Run tests:

npm run test

Extract Entities:

curl http://localhost:3000/extract/?q=sushi%20in%20London
curl http://localhost:3000/extract/?q=vegan%20Sushi%20in%20London
curl http://localhost:3000/extract/?q=veg%20Sushi%20in%20London

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published