Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.1 KB

README.rst

File metadata and controls

55 lines (37 loc) · 1.1 KB

codetest

This is a quick and dirty Flask app showcasing some very basic CRUD operations. It runs on both Python 2 and Python 3.

Directory tree

.
├── README.rst
├── codetest
│   └── __init__.py
├── ez_setup.py
├── requirements.txt
├── setup.py
└── tests
    └── test_crud_operations.py

Installation

It's just fine to run setup.py and install the codetest package:

$ ./setup.py install

Or it may be preferable to install to a virtual environment. Here is an example using pyvenv:

$ pyvenv env
$ source env/bin/activate
$ ./setup.py install

To run the unit tests:

$ ./tests/test_crud_operations.py

To run the application in a debug mode:

$ python codetest/__init__.py

To run the application in a production mode (uwsgi is included in the installation):

$ uwsgi --http-socket :5000 -w codetest:app