Git Product home page Git Product logo

designeditor's Introduction

designeditor

Couchdb _design documents editor.

Note this editor uses parts or full code from:

  • codemirror
  • jquery

Introduction

This application was build to leverage the basic code editor that is built in CouchDB. We started using CouchDB in 2012 and we faced an inflation of _design docs with associated views, list etc and the actual tool was no more answering to our needs so we build a tool that is simple, included in CouchDB and allows to manage _design docs globally.

Enjoy using it, as we do!

How to install?

  1. Install CouchApp (http://couchapp.org/page/index), needed to push this application to local CouchDB server. You can upload files individually but I do not recommend it.
  2. Clone this repository
  3. Open a terminal, go to the directory /designeditor and issue commnad: couchapp push
  4. Open you favorite web browser and go to: http://localhost:5984/designeditor/_design/designeditor/index.html#
  5. Enjoy!

How to use it?

The application has 5 zones: north, south, east, west and center.

  • North (top) you can select the database and click Connect to database to connect to that database. Note: in this version authentication is not implemented. When you succesfully connect to the selected database the list of _design docs is automatically added to the west side.
  • South (bottom) this is the console where you will receive log messages from the application. Watch it for possible errors.
  • West (left) here you can select a _design doc and then all views with map-reduce, lists etc will be shown beneath. Select a map, reduce, list, show etc function to see the code in the center zone.
  • East (right) this zone is minimized by default, you click on the handler in the middle to show it. Here you will find couchdb.js scripts. They are useful for managing your _design docs. You can also save your own scripts.
  • Center zone is where the code is edited - the editor is codemirror. After you edit your code (if it is a _design doc) click Save changes. If it is a code sniplet click Run from East side or Save if you want to save it.

That's all for the moment.

Happy CouchDB codding!

designeditor's People

Watchers

 avatar  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.