GithubHelp home page GithubHelp logo

flask-app's Introduction

flask-app

Install Virtual Environment

Python 3 comes with a virtual environment module called venv preinstalled. If you have Python 3 installed, skip this step.
If you have Python 2, follow the given instructions:

Installation:

Windows:
py -2 -m pip install virtualenv

Linux:
sudo apt install python-virtualenv

Creating a new environment named 'env'

Run the commands:
Windows:
Python 3: py -3 -m venv env
Python 2: py -2 -m virtualenv env

Linux:
Python 3: python3 -m venv env
Python 2: python -m virtualenv env

Activating the environment

Run the commands:
Windows:
env\Scripts\Activate

Linux:
source env/bin/activate

Installing libraries

Libraries necessary :

  • Flask
    python -m pip install flask

Running flask app

Setting FLASK_APP Environment Variable.

Run the commands:
Windows:
setx FLASK_APP=app
setx FLASK_APP=development

Linux:
export FLASK_APP=app
export FLASK_APP=development

Run the flask app

Command:
flask run

Git Commands

  • git init
    Initializes a git repository

  • git pull https://github.com/ShinuShaju/flask-app
    pulls the code from remote repository

  • git add . or git add filename
    adds a file/files to the git staging area

  • git commit -m "commit message in double quotes"

  • git branch -m main
    sets main branch as main

  • git remote add origin https://github.com/ShinuShaju/flask-app

  • git remote set-url origin https://github.com/ShinuShaju/flask-app

  • git push -u origin main
    push to a remote git repository

flask-app's People

Contributors

shinushaju avatar mayopik avatar sjithu007 avatar annapoorna135 avatar gowthamithiramdasu avatar anirudh6060 avatar anandur32 avatar atuljayan avatar santhra-martin avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.