Skip to content

p32929/python_flask_blueprint_mongoenginemate_boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple python_flask_blueprint_mongoenginemate_boilerplate made for us by us

The folder structure is greatly inspired by NestJS / Angular (2+) / Spring boot etc

Share

Sharing with your friends is just one click away from here

facebook twitter tumblr pocket pinterest reddit linkedin whatsapp

Support

If you like my works and want to support me/my works, feel free to support or donate. My payment details can be found here: https://p32929.github.io/SendMoney2Me/

How to run

Windows:

python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt

Linux/Mac:

python -m venv venv
source venv\Scripts\activate
pip install -r requirements.txt

Now run/execute the main.py file:

python main.py

Generate a CRUD module

python generator.py

Run tests

python -m pytest

A simple python_flask_blueprint_mongoenginemate_boilerplate made for us by us

The folder structure is greatly inspired by NestJS / Angular (2+) / Spring boot etc

Share

Sharing with your friends is just one click away from here

facebook twitter tumblr pocket pinterest reddit linkedin whatsapp

Support

If you like my works and want to support me/my works, feel free to support or donate. My payment details can be found here: https://p32929.github.io/SendMoney2Me/

How to run

Windows:

python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt

Linux/Mac:

python -m venv venv
source venv\Scripts\activate
pip install -r requirements.txt

Now run/execute the main.py file:

python main.py

Generate a CRUD module

python generator.py

Run tests

python -m pytest

Docs

  1. The db queries are like https://mongoosejs.com/ but snake_cased. Example:
UserSchema.col().any_mongoose_function()
  1. API validations are done using: https://pypi.org/project/Flask-Pydantic-Docs/ ( For pydantic notations, see this too: https://pypi.org/project/Flask-Pydantic/ )

  2. It follows the folder structure of https://nestjs.com/

Thanks