8000 GitHub - herobank110/userbank: Users API in Python
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

herobank110/userbank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

userbank

Users API in Python

Usage

Install docker and run the following command:

docker-compose up -d --build

This will create three containers:

  • app_main: the back end Python HTTP based API
  • app_test: tests for the back end API
  • db: PostgreSQL database for data persistence

By default the API is served on port 3001. If needed this can can be changed in the docker/app_main.Dockerfile CMD line, and updating the docker-compose.yml ports option in app_main.

Once up and running you can explore the API using tools such as Insomnia, and browse the documentation to learn more.

Testing

After the app_test is finished you can view its logs to see how the tests went. The initial run of the container may result in test failures as it depends on the live db container which may not have started yet. Instead just restart the app_test container to rerun the tests. This should also be done when the source code is changed.

0