https://github.com/ynsrc/python-flask-clipboard
A Python/Flask Web and API Project
https://github.com/ynsrc/python-flask-clipboard
click flask flask-api flask-cli full-stack fullstack python-cli python-click python-flask web-development
Last synced: about 2 months ago
JSON representation
A Python/Flask Web and API Project
- Host: GitHub
- URL: https://github.com/ynsrc/python-flask-clipboard
- Owner: ynsrc
- License: unlicense
- Created: 2024-05-02T02:05:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-03T09:01:34.000Z (over 1 year ago)
- Last Synced: 2025-01-08T17:24:54.524Z (11 months ago)
- Topics: click, flask, flask-api, flask-cli, full-stack, fullstack, python-cli, python-click, python-flask, web-development
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Clipboard (Web and API Project) with Python/Flask
This is an example project to use [Flask](https://flask.palletsprojects.com) for web backend and API service.
## Warning
This is an example project. Using this project in production is not recommended. Should be added more security mechanisms like verifying e-mail when signing up.
## Free Hosting
You can get a free [PythonAnyWhere](https://pythonanywhere.com) account. Then you can upload and test your Python web projects in there.
## To Run
You must installed Flask before via Python's pip or manually.
```
pip install flask
```
Then in root folder of this project open a terminal and type:
```
flask --app website/app run --debug
```
This will start project with default port 5000 in localhost and then you can visit `http://127.0.0.1:5000` in any web browser (Chrome, Edge, etc.)
To change port you can add --port parameter before run.
```
flask --app website/app --port 80 run
```
For production server you should NOT use --debug parameter, but in local debug mode is easy to see errors when occured and changes in project files will be automatically handled.
# License
The Unlicense. Feel free to use or change it how you need.