Coder Social home page Coder Social logo

joe's Introduction

Joe

Joe is a tool to automatically build a REST API, its documentation and charts around SQL queries and their resulting data.

In a way it is an anti-ORM: its purpose is to help backend engineers versioning , annotating, exposing and charting the queries that can't be implemented or aren't worth implementing in the backend main business logic and that they would normally keep on .txt or .sql files.

How to Install

go get -u github.com/evilsocket/joe/cmd/joe

Example

First create an /etc/joe/joe.conf configuration file with the access credentials for the database:

# CHANGE THIS: use a complex secret for the JWT token generation
API_SECRET=02zygnJs5e0bBLJjaHCinWTjfRdheTYO

DB_HOST=joe-mysql
DB_DRIVER=mysql
DB_USER=joe
DB_PASSWORD=joe
DB_NAME=joe
DB_PORT=3306

Then create the admin user (this command will generate the file /etc/joe/users/admin.yml):

sudo mkdir -p /etc/joe/users
sudo joe -new-user admin -token-ttl 6 # JWT tokens for this user expire after 6 hours

For query and chart examples you can check this repository. Once you have your /etc/joe/queries folder with your queries, you can:

Generate markdown documentation:

joe -doc /path/to/document.md

Start the joe server:

joe -conf /etc/joe/joe.conf -data /etc/joe/queries -users /etc/joe/users

Why the name Joe?

The software is a very generic middleware that doesn't have a very specific business logic but adapts to the queries and the data, so one of the most generic and short names looked like a good idea. You can also think about "Joe" as that coworker you can always ask to run a query on the backend for you.

License

joe is made with โ™ฅ by @evilsocket and it is released under the GPL3 license.

joe's People

Contributors

evilsocket avatar

Watchers

 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.