Giter VIP home page Giter VIP logo

custom-cnpm-example's Introduction

custom-cnpm-example

Use cnpmjs.org and your own nfs to build your own npm

Mysql

From here, you can get the mysql table and create your own mysql database.

Samples

Simple

The most simple way to use cnpmjs.org is in custom-cnpm-example/simple.

Just custom your own config, then:

var cnpm = require('cnpmjs.org');
var config = require('./config');

cnpm.startWorker(config);
cnpm.startSync(config);

Then you get a single-process cnpm server.

Culster

To make your system more stable and reliable, mabey you need to enable cluster mode. Just look at custom-cnpm-example/cluster. You also can run cnpmjs.org in cluster with other cluster modules.

Simple File System

Maybe you do not have a private file system to replace the qn file store, we also provider a simple file system, which support cluster server. Just check out the example here: custom-cnpm-example/sfs.

Try it

$ cnpm install

# start simple sample
$ node simple

# start cluster sample
$ node cluster

# start sfs sample
$ node sfs

More File system store support

You can replace the default qn file store by any other file store system, only need to follow this guide. We provide aliyun oss and taobao tfs support. Just check it out.

License

MIT

custom-cnpm-example's People

Contributors

dead-horse 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.