meysam81 / SampleCRUD

An example of a good coding practice

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample CRUD

Build Status Coverage Status

This repository is an example of a good coding practice for several reasons.

  • It adheres to Clean Architecture, and in result SOLID. โค
  • It has tests all over the place. ๐Ÿ˜Š
  • TODO: It has CI/CD integrated. ๐Ÿ˜
  • It uses ORM which is optimized with the help of dozens of awesome developers. ๐Ÿ™
  • It uses different environments for deploying (e.g. dev, prod, test). ๐ŸŽถ
  • It was written by a cool developer. Just kidding. Or am I? ยฉยฎ๐Ÿ˜Ž
  • It has README for lord's sake. โœ”

The full story is explained right here. Check it out for the explanation.

Also shout out to the best guys out there for sharing their knowledge with the rest of us. โ„ข

How to test the app?

There are proper tests in place to check the integrity of the app. In order to run the automation tests, simply install and run tox.

If you're interested in seeing the app live in action, run the following command in your terminal:

docker run --rm -p 8000:8000 ghcr.io/meysam81/sampleapp

And then, here are the URIs you can interact with the app:

URI Methods
/api/v1/books GET, POST
/api/v1/books/<int:book_id> GET, PATCH, DELETE

About

An example of a good coding practice

License:MIT License


Languages

Language:Python 89.6%Language:Dockerfile 9.8%Language:Shell 0.6%