Skip to content

rebeccadias/Server-side-Scripting-Flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server-side-Scripting-Flask

Setup to run the Project

  1. Install Virtual Env pip3 install virtualenv

  2. Create a Virtual Env virtaulenv myenv

  3. activate the environment source myenv/bin/activate

  4. Install Flask pip3 install Flask

  5. do pip freeze to have all modules in one file pip3 freeze > requirements.txt

How to run

  1. Export Flask export FLASK_APP=main.py

  2. Run Flask Project on Local Machine flask run

Hosting on GCP

  1. Create app.yaml

  2. Download GCP from https://cloud.google.com/sdk/docs/install-sdk

  3. Unzip the file and run this ./google-cloud-sdk/install.sh

  4. Initialize gcloud gcloud init

  5. Deploy the App gcloud app deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published