Skip to content

sourya/pyramid-realworld-example-app

 
 

Repository files navigation

RealWorld Example App

CircleCI for pyramid-realworld-example-app (master branch) Test coverage (master branch) Type Hints coverage (master branch) Supported Python versions License: MIT Built by these great folks! Talk to us in #pyramid on Freenode IRC

Pyramid codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.

This codebase was created to demonstrate a fully fledged fullstack application built with Pyramid including CRUD operations, authentication, routing, pagination, and more.

We've gone to great lengths to adhere to the Pyramid community styleguides & best practices. You are encouraged to use it as a scaffold/template for your next Pyramid project.

For more information on how this works with other frontends/backends, head over to the RealWorld repo.

How it works

Pyramid using pyramid_openapi3 for request/response validation and pyramid_deferred_sqla for PostgreSQL integration. Deployed to Heroku.

Pyramid serves one of the RealWorld.io frontends (Elm) on root, so it is easier to understand how things fit together. The frontend is interchangeable, you can use any RealWorld.io frontend.

Getting started

You need to have docker, pipenv and Python 3.7 installed on your machine. Docker should be running. Then you can run:

$ make install
$ make start-pgsql
$ make devdb
$ make run

Now point your browser to:

To run unit tests, mypy typing checker and flake8 linter:

$ make tests

To stop docker and clean container, you can run:

$ make stop-pgsql
$ make clean-pgsql

About

Pyramid and OpenAPI3 based RealWorld implementation.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 90.1%
  • Makefile 4.3%
  • Shell 2.7%
  • HTML 2.3%
  • Mako 0.6%