https://github.com/codeasashu/python-postman-restmocker
This python exposes a flask application which mocks your postman example on localhost
https://github.com/codeasashu/python-postman-restmocker
Last synced: 10 months ago
JSON representation
This python exposes a flask application which mocks your postman example on localhost
- Host: GitHub
- URL: https://github.com/codeasashu/python-postman-restmocker
- Owner: codeasashu
- Created: 2019-08-19T18:43:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-04T18:40:55.000Z (about 4 years ago)
- Last Synced: 2024-10-05T00:40:53.252Z (over 1 year ago)
- Language: Python
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Introduction
This is a [Flask](http://flask.pocoo.org/) application running behind uwsgi server which is being loadbalanced by nginx, which is dockerized. Awesome!!
## How to run
1. Clone the repo `git clone https://github.com/codeasashu/python-nginx-docker.git`
2. `cd` into the repo directory. `cd python-nginx-docker`
3. Create environment file from env-example file. `cp env-example .env`
4. Run `docker-compose build` and then `docker-compose up -d`
5. Enjoy the python app.
## Making changes
The code lives in `app` directory, which have this file called `server.py` - a simple flask application. Make changes there and see if it works
## TODO
1. SSL support
2. Live code reloads
3. Basic frontend to demonstrate static content loading via nginx