Skip to content

Latest commit

 

History

History
96 lines (58 loc) · 1.94 KB

README.md

File metadata and controls

96 lines (58 loc) · 1.94 KB

Panda

A single sign-on application

Panda

Branches

master

Build Status Coverage Status

Setting up development Environment on Linux

Install Project (edit mode)

Cython

$ pip install cython

Panda

$ cd /path/to/workspace
$ git clone [email protected]:Carrene/panda.git
$ cd panda
$ pip install -r requirements-dev.txt
$ pip install -e .

Enabling the bash auto completion for panda

$ panda autocompletion install   
$ deactivate && workon panda

Setup Database

Configuration

db:
  url: postgresql://postgres:postgres@localhost/panda_dev
  test_url: postgresql://postgres:postgres@localhost/panda_test
  administrative_url: postgresql://postgres:postgres@localhost/postgres

messaging:
  default_messenger: restfulpy.messaging.SmtpProvider

smtp:
  host: mail.carrene.com
  port: 587
  username: [email protected]
  password: <smtp-password>
  local_hostname: carrene.com
   

Remove old abd create a new database TAKE CARE ABOUT USING THAT

$ panda db create --drop --basedata --mockup

And or

$ panda db create --drop

Drop old database: TAKE CARE ABOUT USING THAT

$ panda [-c path/to/config.yml] db --drop

Create database

$ panda [-c path/to/config.yml] db --create

Or, you can add --drop to drop the previously created database: TAKE CARE ABOUT USING THAT

$ panda [-c path/to/config.yml] db create --drop

Running tests

$ pytest

Serving

  • Using python builtin http server
$ panda [-c path/to/config.yml] serve
  • Gunicorn
$ ./gunicorn