Skip to content

Commit d46267e

Browse files
committed
update README with local dev instructions
1 parent 72b3683 commit d46267e

1 file changed

Lines changed: 13 additions & 22 deletions

File tree

‎README.md‎

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,19 @@
1-
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fpython%2Fflask&demo-title=Flask%20%2B%20Vercel&demo-description=Use%20Flask%202%20on%20Vercel%20with%20Serverless%20Functions%20using%20the%20Python%20Runtime.&demo-url=https%3A%2F%2Fflask-python-template.vercel.app%2F&demo-image=https://assets.vercel.com/image/upload/v1669994156/random/flask.png)
1+
# Bit Bot
22

3-
# Flask + Vercel
3+
## Getting Started
44

5-
This example shows how to use Flask 2 on Vercel with Serverless Functions using the [Python Runtime](https://vercel.com/docs/concepts/functions/serverless-functions/runtimes/python).
6-
7-
## Demo
8-
9-
https://flask-python-template.vercel.app/
10-
11-
## How it Works
12-
13-
This example uses the Web Server Gateway Interface (WSGI) with Flask to enable handling requests on Vercel with Serverless Functions.
14-
15-
## Running Locally
5+
### Prerequisites:
6+
- Python
167

8+
1. Create and activate a [Python virtual environment](https://docs.python.org/3/library/venv.html)
9+
2. Install dependencies:
1710
```bash
18-
npm i -g vercel
19-
vercel dev
11+
pip install -r requirements.txt
12+
```
13+
3. Create a file `.env` and paste the secrets from the Exec Bitwarden
14+
4. Run the bot:
15+
```bash
16+
flask run -p 8080
2017
```
2118

22-
Your Flask application is now available at `http://localhost:3000`.
23-
24-
## One-Click Deploy
25-
26-
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=vercel-examples):
27-
28-
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fpython%2Fflask&demo-title=Flask%20%2B%20Vercel&demo-description=Use%20Flask%202%20on%20Vercel%20with%20Serverless%20Functions%20using%20the%20Python%20Runtime.&demo-url=https%3A%2F%2Fflask-python-template.vercel.app%2F&demo-image=https://assets.vercel.com/image/upload/v1669994156/random/flask.png)
19+
## Deployment

0 commit comments

Comments
 (0)