Skip to content

topcoder-platform-templates/python-mongo-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Python Mongodb Starter Pack

Prerequisites

  1. Python 3.x
  2. Mongodb
  3. docker & docker-compose

Configuration

Located under the yaml file.

  • MONGODB_URL Mongodb connection url

the config value can be set through environment variable MONGODB_URL.

Local Running

Go to app folder.

Install requirements:

pip install -r requirements.txt

Run application

python app.py

or override with environment variable

MONGODB_URL=xxx python app.py

Docker compose Running

Run:

docker-compose up --build

Test and Verification

Import the postman collection in docs folder to test and verify.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published