GithubHelp home page GithubHelp logo

derby-starter's Introduction

derby-starter

A generic server for use with Derby apps. This is intended as an example and for quick demos. For production servers, you'll want to specifically configure the server for your use case rather than requiring this module.

derby-starter's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

derby-starter's Issues

Npm install error

No compatible version found: derby@^0.6.0
True, derby@^0.6.0 not in valid install targets list.

Support for RedisCloud config variable - Heroku free tier eligible

Right now redis config var can be read from OpenRedis (OPENREDIS_URL) config, yet it does not have free tier at the moment.

Please add possibility to read redis config var for RedisCloud (REDISCLOUD_URL). It has free tier and can be used for Heroku deployments of the sample apps.

Redis client is not configured correctly for session store

Derby store is correctly configured with redis settings with

var redisClient;
  if (process.env.REDIS_HOST) {
    redisClient = redis.createClient(process.env.REDIS_PORT, process.env.REDIS_HOST);
    redisClient.auth(process.env.REDIS_PASSWORD);
  } else if (process.env.OPENREDIS_URL) {
    var redisUrl = parseUrl(process.env.OPENREDIS_URL);
    redisClient = redis.createClient(redisUrl.port, redisUrl.hostname);
    redisClient.auth(redisUrl.auth.split(":")[1]);
  } else {
    redisClient = redis.createClient();
  }

Yet session store uses different code

store: new RedisStore({
        host: process.env.REDIS_HOST || "localhost",
        port: process.env.REDIS_PORT || 6379
    })

hence app fails to start when using non-default settings for redis.

Update deps version

Some of the dependencies in package.json are old. The specific issue I ran into is that hiredis resulted in build errors when using Node.js 4.1.2. The build works find with a newer version of hiredis.

Does it makes sense to update the dependencies and then submit a PR?

Could you please clear dependency list

There are a lots of unnecessary packages in package.json. Could you clear it. I have a problem with hiredis installarion in my Windows system. But it is not even required. Please remove it or move to optionalDependencies block (it's a good practic).

Thank you!

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.