Skip to content

ferdinandbracho/bp_python-flask-sqlalchemy-marshmellow-migrate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Here's the README with an index added in Markdown format:

Boiler Plate for Flask, SQLAlchemy, Marshmallow-Flask, and Flask-Migrate

This project serves as a boilerplate for building scalable web applications using Flask, SQLAlchemy, Marshmallow-Flask, and Flask-Migrate. It is designed to kickstart development by providing a structured framework that includes user authentication, database migrations, and API documentation using Swagger.

Table of Contents

Installation

Option 1: Using a Virtual Environment

  1. Clone the repository.

  2. Create a virtual environment:

    python -m venv venv
  3. Activate the virtual environment:

    source venv/bin/activate   # On Windows use `venv\Scripts\activate`
  4. Install dependencies:

    pip install -r requirements.txt

Option 2: Using Docker

  1. Build the Docker image from the provided Dockerfile:

    docker build -t <image tag> .
  2. Run the Docker container:

    docker run -p 5000:5000 <image name, tag, or id>

Usage

Once the Flask app is running, you can explore and interact with the API documentation in Swagger by navigating to:

http://0.0.0.0:5000/docs

Features

  • User Authentication: Implement user signup, login, and logout functionalities.
  • Database Migrations: Easily manage database schema changes using Flask-Migrate.
  • API Documentation: Auto-generated API documentation with Swagger UI.
  • Environment Configuration: Manage application settings securely using environment variables.

Documentation

Please ensure you update this README after implementing an instance of this template. Here are the recommended steps to follow:

1. Introduction and Overview

In your README's "Introduction and/or Overview" section (or similar), include the following information:

The service is built based on the [flask MS Template](https://github.com/ferdinandbracho/bp_python-flask-sqlalchemy-marshmellow-migrate). For comprehensive technical details, instructions on how to run, deploy, and any other related considerations, please refer to the documentation provided in the [template repository](https://github.com/ferdinandbracho/bp_python-flask-sqlalchemy-marshmellow-migrate).

Indeed Information

Towards the end of your README, just before the "Contributing" section (if applicable), add links to specific sections of the template repository for Indeed Information:

## Indeed Information
For detailed information on installation and prerequisites, please refer to the [template repository](https://github.com/ferdinandbracho/bp_fastAPI-sqlalchemy-alembic-docker).

Contributing

Contributions are welcome! If you'd like to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Implement your changes.
  4. Write or update tests as necessary.
  5. Submit a pull request against the main branch.

Please ensure your code adheres to the project's coding standards and includes appropriate tests.

Acknowledgments

  • Flask for the micro web framework.
  • SQLAlchemy for the ORM.
  • Marshmallow for object serialization and deserialization.
  • Flask-Migrate for handling database migrations.

About

Boiler plate to init a Dockerized flaskPostgres/SQLAlchemy-migrate project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published