Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mjhea0/flask-challenge

Repository files navigation

Flask Challenge

Challenge!

Quick Start

Basics

  1. Fork/Clone
  2. Create and activate a virtualenv
  3. Install the requirements

Set Environment Variables

Update project/server/config.py, and then run:

$ export APP_SETTINGS="project.server.config.DevelopmentConfig"

or

$ export APP_SETTINGS="project.server.config.ProductionConfig"

Add Data

$ python seed.py

Run the Application

$ python manage.py runserver

Endpoints

Endpoint Method Payload Action
/api/v1/ping GET n/a Sanity check
/api/v1/stats GET n/a GET all stats
/api/v1/stats/:uuid GET n/a GET single stat
/api/v1/stats POST view Add data

Test

Without coverage:

$ python manage.py test

With coverage:

$ python manage.py cov

Client

Want to test from the client side? With the serving running, open a new terminal tab and run an HTTP server in "project/client".

About

run along now

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published