GithubHelp home page GithubHelp logo

allancochrane / pgrst-dev-setup Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qu4tro/pgrst-dev-setup

0.0 1.0 1.0 19 KB

A quick workflow to experiment with PostgREST

License: MIT License

Shell 77.49% Python 22.51%

pgrst-dev-setup's Introduction

pgrst-dev-setup

pgrst-dev-setup is a collection of docker-compose ymls, shell scripts and some config files for a quick workflow to experiment with PostgREST.
It provides the database, the application and some tooling to help interact with the system. After a session it also saves the docker logs for i.e. debugging purposes.

Requirements

You need to have docker and docker-compose installed. If you have tmuxp installed, you can also use the session file to a even quicker start.

Installation

Underlying software installation happens when docker starts the necessary containers. That means you only need to clone this repository to get started.

git clone https://github.com/Qu4tro/pgrst-dev-setup/
cd pgrst-dev-setup

You can change the files inside data to change the loaded configurations and the database startup script.

Note: All commands attach to the terminal. If you want to avoid using multiple terminal windows you can use the included tmuxp script.

Usage

./start

Starts postgres, postgrest and mitmdump (for comprehensive logging). The database is served on the port 5000 and the server on 5001. Dumps a logs.txt with logs from all these three containers after exiting.


./start <tool>

Start one of the available tools. Listing is below.


./start with-nothing

Clean traces of docker-compose


./start tmux

Run tmuxp session

Available Tools

  • pgadmin4

    Starts a server on port 5003
    Points by default to postgres database

  • psql

    Points by default to postgres database

  • pgcli

    Points by default to postgres database

  • http-prompt

    Points by default to postgrest server

  • swagger

    Starts a server on port 5003
    Points by default to postgrest proxy server

  • mitmproxy

    Starts a reverse proxy on port 5002
    Starts a mitmweb instance on port 5005

Contributing

Pull requests are welcome.

License

MIT

pgrst-dev-setup's People

Contributors

qu4tro avatar

Watchers

 avatar

Forkers

bbigras

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.