antonshell / react-search

Web interface for custom search engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom search engine frontend

Frontend for custom search engine(based on elastic).

Frontend build with React JS.

Install

1 . Clone repository

https://github.com/antonshell/react-search.git

2 . Install dependencies

npm install

3 . Configure api url,

cp proxy/_config.php.dist proxy/_config.php
nano proxy/_config.php

4 . Deploy to build folder. Builds react app, copy proxy script

./deploy.sh

Under hood it uses

npm run build
cp -R proxy build/

5 . Configure web-server to use build as web directory

Install with docker:

The same as install process. But need to do extra things

1 . Configure docker compose file, change needed settings. ports, volumes etc

cp docker-compose.yml docker-compose.yml.dist
nano docker-compose.yml

2 . Run

docker-compose run
  1. Check search frontend
http://127.0.0.1:8070/ 

or whatever

About

Web interface for custom search engine


Languages

Language:JavaScript 50.7%Language:HTML 40.2%Language:CSS 6.0%Language:PHP 3.1%Language:Shell 0.1%