GithubHelp home page GithubHelp logo

jidar / iffy Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 49 KB

A maybe not so great giphy wrapper!

Dockerfile 2.00% Shell 4.94% Python 52.03% CSS 0.43% JavaScript 0.13% HTML 40.47%

iffy's Introduction

## Run / Install

run scripts/coldstart.sh
then run scripts/refresh.sh


## Helpful Commands

# Kill the docker machine
docker-machine rm dev

# new docker Machine + eval
docker-machine create -d virtualbox dev; eval "$(docker-machine env dev)"

# show Machines
docker-machine ls

# build project
docker-compose up --build -d

# create DB table
docker-compose run web /usr/local/bin/python create_db.py

# inspect env vars
docker-compose run web env

# view logs
docker-compose logs

# shell into DB
docker-compose run postgres psql -h "$(docker-machine ip dev)" -p 5432 -U postgres --password

### rebuild/redeploy
docker-compose build; docker-compose up -d

### curl tests
curl -X GET http://192.168.99.101/api

postgresql cheat sheet:
https://www.postgresqltutorial.com/postgresql-cheat-sheet/

# list all tables
\dt

#get table rows
select * from posts;

# filter
SELECT *
FROM table
WHERE condition;

curl

iffy'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.