Skip to content

Instantly share code, notes, and snippets.

View guisea's full-sized avatar

Aaron Guise guisea

  • Hamilton, New Zealand
  • 05:36 (UTC +13:00)
View GitHub Profile
@miguelgrinberg
miguelgrinberg / rest-server.py
Last active August 4, 2024 14:41
The code from my article on building RESTful web services with Python and the Flask microframework. See the article here: http://blog.miguelgrinberg.com/post/designing-a-restful-api-with-python-and-flask
#!flask/bin/python
from flask import Flask, jsonify, abort, request, make_response, url_for
from flask_httpauth import HTTPBasicAuth
app = Flask(__name__, static_url_path = "")
auth = HTTPBasicAuth()
@auth.get_password
def get_password(username):
if username == 'miguel':
@qWici
qWici / .env.travis
Last active February 25, 2020 00:24 — forked from gilbitron/.env.travis
Laravel 5.5 Travis CI config
APP_ENV=testing
APP_KEY=SomeRandomString
DB_CONNECTION=testing
DB_TEST_USERNAME=root
DB_TEST_PASSWORD=root
CACHE_DRIVER=array
SESSION_DRIVER=array
QUEUE_DRIVER=sync