Skip to content

QA-Instructor/flask-sqlalchemy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Flask Application

This application is a sample Python Flask web app that uses Jinja templates and SQLAlchemy.

Setup

Open MySQL Workbench and create a new database, called for example flask_team_a.

create database flask_team_a;

Edit the following line of code in init.py to the user, password and database you wish to use:

app.config['SQLALCHEMY_DATABASE_URI'] = "mysql+pymysql://root:password@localhost/flask_team_a"

Run create.py to drop, create and populate the database tables with initial data.

Run

To start the Flask app, run app.py.

Routes

Test the /people and /cars routes.

Postman

Use Postman to test the PUT and POST routes and then expand the app to include forms to add and edit people and cars as necessary.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published