Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rakvium/python-flask-pong
Simple Flask project that responds with text `pong` to requests to root route
https://github.com/rakvium/python-flask-pong
Last synced: 10 days ago
JSON representation
Simple Flask project that responds with text `pong` to requests to root route
- Host: GitHub
- URL: https://github.com/rakvium/python-flask-pong
- Owner: rakvium
- Created: 2021-08-22T15:55:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-22T15:58:45.000Z (over 3 years ago)
- Last Synced: 2025-01-05T16:14:49.583Z (24 days ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# python-flask-pong
Simple Flask project that responds with text `pong` to requests to site's root
## Dependencies
- [Python 3](https://github.com/python/cpython)
- [pip (package installer for python)](https://github.com/pypa/pip)
- [Flask framework](https://github.com/pallets/flask)## How to run:
- Use Python 3
If you have [pyenv (python version manager)](https://github.com/pyenv/pyenv):
If you have pyenv and feel safe:
```bash
# install Python version, stated in the .python-version file
pyenv install `cat .python-version`
# use Python version, stated in the .python-version file
pyenv shell `cat .python-version`
```
If you have pyenv and feel paranoid:
```bash
# install a particular Python version
pyenv install 3.9.1
# use a particular Python version
pyenv shell 3.9.1
```- Install Python dependencies:
`pip install -r requirements.txt`- Run flask:
`flask run`It will respond with word `pong` when you open http://127.0.0.1:5000/