Code Monkey home page Code Monkey logo

db's Introduction

db/ folder

If you are like me and you hate running a lot of services, particularly databases in the background that silently consumes your machine resources without your consent, then you might find this project useful.

This project is a right now, just a simple Makefile with pre-configured command line calls so you can start and stop several common services at once with ease via make and can be sure that all data created by those services is contained inside the folder which means they can be cleaned by simply running git-clean.

Right now it only runs a few services that I needed. I will add more in the future as I needs them or if someone sends me a pull request :)

INITIALIZE

You needs to run this command once for each service that requires initializing and also if you have just ran git-clean for the service.

$ make pg-init mysql-init redis-init

NOTE: To properly initializes and run PostgreSQL locally on OS X you may need to increase your system's kern.sysv.shmall value to at least 4096. Read Increasing Shared Memory for Postgres on OS X for more info.

START

For example, to start PostgreSQL, Redis and Mailcatcher all at once, just run:

$ make pg mysql redis

STOP

Stopping services is just as easy:

$ make pg-stop mysql-stop redis-stop

CLEAN

To clean all data from services, just run git clean -xdf on any related folder.

For example, to completely wipe your PostgreSQL clean and start fresh, just do this:

$ git clean -xdf pg/

If you are not sure what files git will delete from your system, just run a what-if mode once and git-clean will print out files that it would delete:

$ git clean -xdn pg/

LICENSE

WTFPL (http://www.wtfpl.net/txt/copying/)

SUPPORT / CONTRIBUTE

Just ping me @chakrit on Twitter or open a new GitHub issue

PRs also accepted.

TODO

  • CouchDb
  • MongoDb

Other non-database services:

  • Mailcatcher
  • Stunnel

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.