Skip to content

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

Notifications You must be signed in to change notification settings

allanadair/codetest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages