npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bio-service

v0.0.1

Published

## 开发环境 * 安装mongodb并启动(启动命令:mongod --fork --dbpath=/var/datas/bio_db —logpath=/var/datas/dblog) * 安装Node(5.3以上版本,推荐最新,开发中有问题切回5.3再试一下) * git clone 本仓库并进入文件夹 * `git checkout platform` 切换到`platform` 分支(通用平台分支) * 执行 `npm install`或者`yarn install`(如果使用yarn需单

Downloads

2

Readme

通用平台分支

开发环境

  • 安装mongodb并启动(启动命令:mongod --fork --dbpath=/var/datas/bio_db —logpath=/var/datas/dblog)
  • 安装Node(5.3以上版本,推荐最新,开发中有问题切回5.3再试一下)
  • git clone 本仓库并进入文件夹
  • git checkout platform 切换到platform 分支(通用平台分支)
  • 执行 npm install或者yarn install(如果使用yarn需单独安装)
  • 安装bower npm install bower -g或者yarn global add bower
  • 执行 bower install
  • 安装grunt npm install grunt -g或者yarn global add grunt
  • 开发调试:grunt serve

容器环境开发调试(一般用不到)

  • 设置环境变量:export LC_ALL=C
  • 数据库启动命令: mongod --fork --dbpath=/var/datas/bio_db —logpath=/var/datas/dblog
  • Service 启动命令 sudo NODE_ENV=production PORT=80 DBURL=mongodb://jasine:jasine@localhost:27017/bio_db forever start /var/www/PGAP/server.js Service停止命令 sudo forever stopall

编译可部署代码

  • grunt build 编译后的代码在dist文件夹
  • 进入dist目录 NODE_ENV=production node server.js 即可运行编译好的目标代码
  • 如需自动编译docker镜像,需要将dist文件夹初始化为一个git仓库,然后push到github或bitbucket,再在docker hub创建自动编译,链接到该代码仓库,并选择在push代码时自动编译,最后push此代码仓库,以后build完部署代码后push到dist远程仓库即可自动编译docker镜像。

服务器部署

  • Server IP:159.226.49.45:8080

sudo docker pull jasine/buildpgap

sudo docker pull mongo

sudo docker run -i -t -d --name mongo_platform --restart always mongo

sudo docker run -i -t -d --name platform --restart always --link mongo_platform:mongo -p 8080:3000 -v /var/PlatformData/tasks:/tasks jasine/buildpgap:platform

  • 任务文件目录:/var/PlatformData/tasks (提前在服务器创建该文件夹)

  • 注意!!! 重新部署mongo 会冲掉所有已有数据库记录,任务信息等,不要轻易删除mongo container,或删除前导出数据

更新(重新pull 并 run)mongodb的镜像后,要删除platform镜像并重新run一个出来,不然连接会丢失