https://github.com/pycob/flask-quickstart
https://github.com/pycob/flask-quickstart
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pycob/flask-quickstart
- Owner: pycob
- License: mit
- Created: 2023-04-06T00:18:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-17T17:10:03.000Z (almost 2 years ago)
- Last Synced: 2024-08-13T07:08:20.704Z (6 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - pycob/flask-quickstart - (Python)
README
# Flask Quickstart for Pycob
## Step 1. Clone the Repo
This downloads the quickstart repository to your local machine
```bash
git clone https://github.com/pycob/flask-quickstart.git
```## Step 2. Install Requirements
This installs the necessary requirements to run the Flask app
```bash
pip install -r requirements.txt
```## Step 3. Set your API Key
The API key is used for interacting with Pycob.If you don't have an API key, get one here: https://www.pycob.com/deploy
```bash
export PYCOB_API_KEY=pycob-key-...
```## Step 4. Run Locally
This is just to test whether the app works locally
```bash
python main.py
```## Step 5. Deploy to Pycob
This will:
- Send the files to Pycob
- Opens a browser to complete the deployment setup
- Serves the app on `your_app_name.pycob.app`
```bash
python -m pycob.deploy
```