/GYResources

This repository is dedicated to turn available green eyes resources like an API

Primary LanguageTSQL

GYResources

Build Status Coverage Status Code Health Docker Automated Build
This repository is dedicated to turn available green eyes resources in a API and website project

Dependences

Install PostgreSQL:

sudo apt update && \
  sudo apt install postgresql \
    python3-dev
    python3-pip

Enter in postgresql:

psql template1 -U postgres

Create your user:

CREATE ROLE capivara LOGIN SUPERUSER INHERIT CREATEDB LOGIN;
ALTER USER capivara WITH PASSWORD 'test';
CREATE DATABASE green_eyes;

Add the following line in /etc/postgresql/9.5/main/pg_hba.conf:

local   all             capivara                                     md5

and restart postgresql:

sudo /etc/init.d/postgresql restart

Clone this repository, enter and execute:

psql green_eyes -U capivara <  	backupGreeneyes.sql

Install dependences from project:

pip3 install -r requirements.txt

Running

python3 app.py

Docker

You can use docker for development using:

docker run \
    -v /dir/to/GYResources:/root/git/GYResources \
    -p 8888:8888 \
    --net=host \
    -it \
    --rm capivaraprojects/gyresources /usr/bin/zsh