Skip to content
This repository has been archived by the owner on Apr 24, 2018. It is now read-only.

raidokaldma/key-value-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple key-value store

Steps to get it running in OpenShift cloud

  1. Create new NodeJS 0.6 application in OpenShift.
  1. Add new cartridge: MongoDB
  2. Restart your application to pick up MongoDB environment variables:
  • Option 1 (using OpenShift RHC Client Tools):
    • rhc app-restart
  • Option 2 (using ssh):
    • ssh ...@.rhcloud.com
    • gear restart

Development environment setup

# Set up port forwarding for MongoDB access
rhc port-forward <your-app>
export OPENSHIFT_MONGODB_DB_URL=mongodb://admin:<password>@127.0.0.1:27017/
export OPENSHIFT_NODEJS_PORT=3000
./server.js

About

Super simple key value store (NodeJS + MongoDB)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published