Skip to content

jmbmxer/basecamp

Repository files navigation

Build Status

This is a starting point for a Flask website + API using:

Plus stubs for

  • Templates
  • Testing

I got the basic idea from Nic: http://stackoverflow.com/a/24258886/700283

Setup

  • Create and activate a vitualenv
  • Run pip install -r requirements.txt
  • Start server using python server.py

Website

  • Access site at /. Not much there, just a basic example for logging in

Admin

  • Access admin at /admin

API auth

  • POST /api/v1/auth {'username': '', 'password': ''}
  • Returns JSON with {'token':''}
  • Then request from API using header 'Authorization: Bearer $token'

Tests

  • Run tests using python test.py =======

basecamp

Base flask API skeleton

About

Base flask API skeleton

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5