Giter Club home page Giter Club logo

root-search-server's Introduction

RootSearch Server

RootSearch server is a server for RootSearch search engine.

Requirements

.NET 5.0 / .NET Runtime 5.0

RootSearch server is in development on .NET 5.0

Redis 6.0

RootSearch depends on Redis.

Docker (optional)

RootSearch can also running on Docker.

Configuration

appsettings.json example.

Environment configuration (AWS, ElastiCache)

{
  "Kestrel": {
    "Endpoints": {
      "HttpsDefaultCert": {
        "Url": "Url for api server (e.g. https://0.0.0.0:5001)"
      }
    },
    "Certificates": {
      "Default": {
        "Path": "SSL key path (e.g. my-key.pfx)",
        "Password": "SSL key password"
      }
    }
  },
  "RedisSettings": {
    "Host": "Host for redis server",
    "Port": "Port number for redis server"
  },
  "SearchEngineApiSettings": {
    "GoogleCustomSearchApiSettings": {
      "ApiKey": "Google custom search api key",
      "Cx": "Google Custom search engine ID"
    }
  }
}

Environment configuration (Heroku)

{
  "SearchEngineApiSettings": {
    "GoogleCustomSearchApiSettings": {
      "ApiKey": "Google custom search api key",
      "Cx": "Google Custom search engine ID"
    }
  }
}

Run

Docker (AWS)

docker build -t {image name} .

docker run --name {container name} -d -p {hostPort:innerPort} {image name}

TODO: docker compose

Docker (Heroku)

# see https://dev.to/alrobilliard/deploying-net-core-to-heroku-1lfe
heroku container:login

docker build -t {image name} .

heroku container:push -a {image name} web

heroku container:release -a {image name} web

# for logs
heroku logs --app {image name} --tail

.NET standalone (without docker)

# You can skip this step if you already migrated from .NET Core 3.1 to .NET 5.0
dotnet nuget locals --clear all

dotnet restore

dotnet run apiserver

root-search-server's People

Contributors

bennlee 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.