Code Monkey home page Code Monkey logo

server's Introduction

心灵脉冲服务器

小微型网站专用。

使用

release 中下载最新版本,上传到你自己的服务器即可使用。

在服务器中解压文件:

tar zxvf mind-pulse-server-linux-x64-*.tar.gz

你会得到一个server文件,可以直接运行:

./server

根据此服务使用的 host 和 port 配置反向代理,即可在你自己的网站中使用。

host:127.0.0.1
port:9999

编译

你也可以随时自行编译最新代码:

cargo build -r

如果觉得编译产物体积大,可以用upx压缩一下。

常见问题

1. 为什么量表硬编码?

  • 心理学能够自评的又被心理学界认可的量表本来就不多,没必要使用数据库保存量表。
  • 量表结构差异较大,硬编码没有反序列化的过程,方便维护。

2. 为什么都使用硬编码了,不直接把量表数据保存到 json 文件并入前端?

理论上可以,在我开源之前已经有人这么做了,只不过使用 server 更便于统计,所以项目中还有一个简陋的模块叫statistics

server's People

Contributors

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