nenet node server

DevYK d6de890c4f 不同环境对应不同配置信息 %!s(int64=3) %!d(string=hai) anos
bin 6c7023d2a0 denet server init %!s(int64=3) %!d(string=hai) anos
config d6de890c4f 不同环境对应不同配置信息 %!s(int64=3) %!d(string=hai) anos
model d6de890c4f 不同环境对应不同配置信息 %!s(int64=3) %!d(string=hai) anos
node_modules acda782535 读取 env 解密私钥 %!s(int64=3) %!d(string=hai) anos
public 6c7023d2a0 denet server init %!s(int64=3) %!d(string=hai) anos
routes 3450e4450b 读取所有的币价格 %!s(int64=3) %!d(string=hai) anos
views 6c7023d2a0 denet server init %!s(int64=3) %!d(string=hai) anos
.env.example acda782535 读取 env 解密私钥 %!s(int64=3) %!d(string=hai) anos
.gitignore 634672042f change moralis_sdk %!s(int64=3) %!d(string=hai) anos
README.md d6de890c4f 不同环境对应不同配置信息 %!s(int64=3) %!d(string=hai) anos
app.js acda782535 读取 env 解密私钥 %!s(int64=3) %!d(string=hai) anos
package-lock.json acda782535 读取 env 解密私钥 %!s(int64=3) %!d(string=hai) anos
package.json acda782535 读取 env 解密私钥 %!s(int64=3) %!d(string=hai) anos

README.md

安装必要的库

npm install

配置环境变量

vim ~/.bashrc

export DENET_CRYPT_KEY=aGijQgBf51VdlsED
export DENET_CRYPT_IV=fCHyw3VJxhU4biRF

source ~/.bashrc

启动

<!-- 开发环境启动 -->
NODE_ENV=dev ./node_modules/.bin/nodemon bin/www
<!-- 测试环境启动-->
NODE_ENV=test pm2 start bin/www
<!-- 线上环境启动 -->
NODE_ENV=prd pm2 start bin/www

健康检查

http://localhost:3000/nenet

文档