GithubHelp home page GithubHelp logo

psum-for-mongodb's Introduction

psum-for-mongodb

Pretty Simple User Management service for self-servicing MongoDB user (and database) creation

What is this?

A very simple Node.js application which if receives a GET request to the /create URL then generates a connection string (with 3 random, long HEX username, password and DB name) to the configured MongoDB instance which can be used to access only that database on the given MongoDB server. For this it only needs a connection string to that MongoDB instance with the proper rights to do this task.

Why?

For the simple reason of being able to provision MongoDB databases with connection strings to developers without any actions needed by other parties. It was a small part for our piloting of Deis during a company Hackathon. In a very limited and minimalistic sense doing something similar to MongoLab or MongoHQ/Compose.io addons on Heroku.

I tried to find something like this for a short time during the mentioned Hackathon and suprisingly found nothing similar either in Heroku mimicking tools (like Deis itself) or idependently. So I wrote it from stratch as a proof-of-conecpt.

Running Locally

Make sure you have Node.js installed and have a MongoDB server available and accessible for the application.

$ git clone https://github.com/nightw/psum-for-mongodb.git # or clone your own fork
$ cd psum-for-mongodb
$ npm install
$ export MONGO_URI=mongodb://your_mongo_server_location:your_mongodb_port
$ npm start

Your app should now be running on localhost:5000.

Deploying to Heroku

$ heroku create
$ git push heroku master
$ heroku open

Contributing

Please do. This project is currently pretty minimalistic and limted for production use, so new features (and fixes) are very welcome.

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write you change
  4. Submit a Pull Request using Github

psum-for-mongodb's People

Contributors

nightw avatar

Stargazers

Rimantas (Rimas) Mocevicius avatar

Watchers

James Cloos 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.