Giter Club home page Giter Club logo

nrs-server's Introduction

News Recommend System - Server

Feature

  • 使用 docker 分模块部署解耦
  • 后端使用 Rust 高性能实现
  • 模块间调用使用 RPC 方案
  • 遵循 openapi 3.0 规范开发

How to Deploy

  1. 配置 Rust 环境 (MSRV 1.64)
  2. 设置远程 python 算法 rpc server 地址:
[common]
model_addr = "xxx:50001"
  1. 配置好 postgresql 数据库:
[database]
user_name = "news_recommender"
password = "nekopara"
host = "127.0.0.1"
port = "5432"
db = "news_recommend"
  1. 安装 protobuf
  2. 配置好其他你想配置的东西,然后开启数据库以及远程的 python 算法 rpc server

启动

cargo run

Deploy in Docker

如果希望整个后端均以 docker 集群的形式部署,首先需要保证 app 容器能够访问 python 算法模块。然后执行以下命令:

git clone https://github.com/silentEAG/nrs-server && cd nrs-server
cp docker-compose-pro.yml docker-compose.yml
docker compose up -d

Devlopment

需要 Rust 1.64 及以上开发环境,以下命令只会启动 db 容器,rust server 会在物理机上运行。

git clone https://github.com/silentEAG/nrs-server && cd nrs-server
cp docker-compose-dev.yml docker-compose.yml
docker compose up -d

MSRV

1.64.0

nrs-server's People

Contributors

silenteag avatar

Stargazers

 avatar  avatar

Watchers

 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.