Skip to content

Noah-Lc/simple-blog-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status

simple-blog-rest-api

Create a Simple Blog REST API with Python, Django REST Framework and Docker using Test Driven Development (TDD)

Technologies used

  • Django: The web framework for perfectionists with deadlines (Django builds better web apps with less code).
  • REST framework: A powerful and flexible toolkit for building Web APIs.

Installation

docker-compose up -d

This will build and run the db and simple-blog-api containers.
You now have a simple-blog-api container and PostgreSQL container running on your host.
You can now access the file api service on your browser by using http://127.0.0.1:8000/api

docker-compose run app sh -c "python manage.py test"

To Run the tests.
By default the tests will individually report only on test failures, followed by a test summary.
See the section about running tests for more information.

docker-compose down

Stop and remove containers, networks, images, and volumes.