This is a quick and dirty Flask app showcasing some very basic CRUD operations. It runs on both Python 2 and Python 3.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
codetest
tests
README.rst
ez_setup.py
requirements.txt
setup.py

README.rst

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