An open API service indexing awesome lists of open source software.

https://github.com/domenkozar/pyramid-cookiecutter-jinja2

A cookiecutter (project template) for creating a Pyramid starter project using Jinja2 for templating.
https://github.com/domenkozar/pyramid-cookiecutter-jinja2

Last synced: about 1 year ago
JSON representation

A cookiecutter (project template) for creating a Pyramid starter project using Jinja2 for templating.

Awesome Lists containing this project

README

          

===========================
pyramid-cookiecutter-jinja2
===========================

.. image:: https://travis-ci.org/Pylons/pyramid-cookiecutter-jinja2.png?branch=master
:target: https://travis-ci.org/Pylons/pyramid-cookiecutter-jinja2
:alt: Master Travis CI Status

A cookiecutter (project template) for creating a Pyramid starter project using
Jinja2 for templating.

See `pyramid_jinja2 `_ documentation for more details.

Requirements
------------

* Python 2.7 or 3.4+
* `cookiecutter `_

Usage
-----

1. Generate a Pyramid project, following the prompts from the command.

.. code-block:: bash

$ cookiecutter https://github.com/Pylons/pyramid-cookiecutter-jinja2

2. Finish configuring the project by creating a virtual environment and
installing your new project. These steps are output as part of the
cookiecutter command above and are slightly different for Windows.

.. code-block:: bash

# Change directory into your newly created project.
$ cd myproj
# Create a virtual environment...
$ python3 -m venv env
# ...where we upgrade packaging tools...
$ env/bin/pip install --upgrade pip setuptools
# ...and into which we install our project and its testing requirements.
$ env/bin/pip install -e ".[testing]"

3. Run your project's tests.

.. code-block:: bash

$ env/bin/pytest

4. Run your project.

.. code-block:: bash

$ env/bin/pserve development.ini