Coder Social home page Coder Social logo

mandarvaze / pyramid-realworld-example-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from teamniteo/pyramid-realworld-example-app

0.0 1.0 0.0 673 KB

Pyramid and OpenAPI3 based RealWorld implementation.

Home Page: https://realworld.io

License: MIT License

Shell 5.57% Makefile 4.30% Python 83.23% Mako 0.52% HTML 2.06% Dockerfile 1.56% Nix 2.75%

pyramid-realworld-example-app's Introduction

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.

Demo (app)    Demo (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

To setup your development environment, there are some dependencies you need to install on your system. You can either install them manually, or use Nix and direnv to install them automatically (except docker which you need to install manually).

So, first ensure that you have Docker installed on your system. Then,

Option 1: Install manually

If you have any dependency related issue, check out ./shell.nix for the specific version of dependencies.

Option 2: Install using Nix

Docker should be running. Then you can run:

$ cd ~/projects
$ git clone https://github.com/niteoweb/pyramid-realworld-example-app.git
$ cd pyramid-realworld-example-app
$ 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

pyramid-realworld-example-app's People

Contributors

alonski avatar balavec avatar davisagli avatar domenkozar avatar ericsimons avatar esakkiraj avatar mandarvaze avatar matthewwilkes avatar nkk0 avatar optikfluffel avatar sayanarijit avatar stevepiercy avatar suryasr007 avatar zupo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.