Skip to content

NatriumLab/Natrium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Natrium

这是什么?

一个可能的服务器玩家管理系统的源代码仓库. 灵感来自 Blessing Skin.

部署

在GNU/Linux环境部署该项目时, 请先使用包管理器安装 postgresql-libs, 以在一定程度上避免出现pipenv部署环境失败的情况:

# 用于Ubuntu
sudo apt-get install libpq-dev

# 用于RedHat, CentOS及其他使用了RPM作为包管理器的发行版
sudo yum install postgresql-libs

# 用于Archlinux 或基于其的发行版
sudo pacman -S postgresql-libs

在Windows环境中部署时, 请先安装Visual C++ Build Tools 14, 以防止安装模块时发生不可名状的错误.
Stack OverFlow 上的相关问题
若是您觉得太麻烦, 请使用WSL, 虽然我没用, 但为了你的时间着想, 还是请在GNU/Linux环境部署.

然后使用pip安装pipenv:

sudo pip install pipenv

克隆本仓库或是从本项目的Release页面获取可能的打包:

git clone https://github.com/NatriumLab/Natrium && cd Natrium

使用pipenv安装需求包:

pipenv --three # 创建venv虚拟环境
pipenv install # 安装需求包

启动:

pipenv shell
python main.py

# or
pipenv run main

关于orjson的使用

这个commit 中, orjson 被列入必须安装的扩展列表中, 以便开发者获取更为良好的开发体验.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages