Skip to content

Instantly share code, notes, and snippets.

View alimesutk's full-sized avatar
🐚
:(){ :|:& };:

Ali Mesut Karadeniz alimesutk

🐚
:(){ :|:& };:
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alimesutk
alimesutk / app.py
Created March 12, 2021 10:39 — forked from betterdatascience/app.py
Python Database Driven REST API
from flask import Flask, request, jsonify
from flask_sqlalchemy import SQLAlchemy
from flask_marshmallow import Marshmallow
from flask_restful import Resource, Api
app = Flask(__name__)
api = Api(app)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///users.db'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False