GithubHelp home page GithubHelp logo

hackersandslackers / flask-sqlalchemy-tutorial Goto Github PK

View Code? Open in Web Editor NEW
390.0 7.0 71.0 1.56 MB

:snake: :information_source: Create and manage data in your Flask app via a SQL database.

Home Page: https://hackersandslackers.com/flask-sqlalchemy-database-models

License: MIT License

Python 50.95% CSS 5.92% Makefile 18.20% Jinja 24.93%
flask flask-sqlalchemy tutorial flask-application-factory python orm-framework orms sqlalchemy sqlalchemy-orm

flask-sqlalchemy-tutorial's Introduction

Flask-SQLAlchemy Tutorial

Python Flask Flask-SQLAlchemy GitHub Last Commit GitHub Issues GitHub Stars GitHub Forks

Flask-SQLAlchemy Tutorial

Connect your Flask app to a database using Flask-SQLAlchemy.

Getting Started

Get set up locally in two steps:

Environment Variables

Replace the values in .env.example with your values and rename this file to .env:

  • ENVIRONMENT: The environment in which to run your application (either development or production).
  • FLASK_DEBUG: Whether to run Flask in "debug mode".
  • SECRET_KEY: Randomly generated string of characters used to encrypt your app's data.
  • SQLALCHEMY_DATABASE_URI: SQLAlchemy connection URI to a SQL database.

Remember never to commit secrets saved in .env files to Github.

Installation

Get up and running with make deploy:

git clone https://github.com/hackersandslackers/flask-sqlalchemy-tutorial.git
cd flask-sqlalchemy-tutorial
make deploy

Hackers and Slackers tutorials are free of charge. If you found this tutorial helpful, a small donation would be greatly appreciated to keep us in business. All proceeds go towards coffee, and all coffee goes towards more content.

flask-sqlalchemy-tutorial's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar renovate-bot avatar toddbirchard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

flask-sqlalchemy-tutorial's Issues

How install it

Im new making a websites with Python, but i need help for try to put this config to a new proyect.

You can help me? :)

./deploy.sh: source: not found

Running command make deploy (and make run(??)) sends an error /deploy.sh: source: not found.
It is because link /bin/sh refers to /bin/dash instead of /bin/bash on my linux (Ubuntu 20.04)
Workaround: `make -e SHELL=/bin/bash deploy'. It isn't too nice.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

pep621
pyproject.toml
  • poetry-core >=1.0.0
pip_requirements
requirements.txt
  • black ==24.4.2
  • blinker ==1.8.2
  • click ==8.1.7
  • colorama ==0.4.6
  • exceptiongroup ==1.2.1
  • flask-sqlalchemy ==3.1.1
  • flask ==3.0.3
  • greenlet ==3.0.3
  • gunicorn ==21.2.0
  • iniconfig ==2.0.0
  • isort ==5.13.2
  • itsdangerous ==2.2.0
  • jinja2 ==3.1.4
  • markupsafe ==2.1.5
  • mypy-extensions ==1.0.0
  • mypy ==1.10.0
  • packaging ==24.1
  • pathspec ==0.12.1
  • platformdirs ==4.2.2
  • pluggy ==1.5.0
  • pymysql ==1.1.1
  • pytest ==8.2.2
  • python-dotenv ==1.0.1
  • sqlalchemy ==2.0.30
  • tomli ==2.0.1
  • typing-extensions ==4.12.2
  • werkzeug ==3.0.3
poetry
pyproject.toml
  • python >=3.10,<4.0
  • flask *
  • flask_sqlalchemy *
  • pymysql *
  • python-dotenv *
  • pytest *
  • black *
  • isort *
  • mypy *
  • gunicorn ^21.2.0
  • poetry-plugin-export ^1.8.0
  • loguru ^0.7.2

  • Check this box to trigger a request for Renovate to run again on this repository

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

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.