Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

LACMTA/places

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published