This is a shell script that that allows execution of Django a python based framework.
A shell script is a computer program designed to be run by the Unix shell, a command-line interpreter. The various dialects of shell scripts are considered to be scripting languages. Typical operations performed by shell scripts include file manipulation, program execution, and printing text. A script which sets up the environment, runs the program, and does any necessary cleanup, logging, etc. is called a wrapper.
What is Flask
Flask is a microframework for Python based on Werkzeug, Jinja 2 and good intentions.
Flask is a micro web framework written in Python. It is classified as a microframework because it does not require particular tools or libraries and is mostly used to build small application with simpler requirements.
{Please go through what this shell-script does for you. It will help you avoid bugs in your code. In case you use a technology that might cause failure of your code to run}
By Running the app it simply:
-
Initializes Empty Git Repository
-
Installs flask
-
Installs werkzeug
-
Installs click
-
Installs Jinja
-
Installs flask script
-
Installs flask-bootstrap
-
Installs gunicorn
-
Installs flask-wtf
-
Installs flask-sqalchemy
CREATED FILES
The script also helps in creating files needed in flask and this making it easy for you to code as you no longer hav to create them on your own.
It simply creates files and adds the preset standard code thats will not change in any given file structure.
You are now ready to code.
- You need to have nano text editor installed. you can find out whether you have it installed by typing nano --version in your terminal. For most linux distributions, it is installed by default.
Installing Nano Text Editor.
-However, if you don't have it installed, you can quicky do that by typing:
sudo apt-get install nano
- You need to have (python3.6) installed in your machine.
-To check if you already have python3.6 before installing type:
python3.6 -V
Installing Python3.6
To install python3.6 you can quicky do that by typing:
sudo apt-get install python3.6
To work With this cli {follow the below instructions for set up.}
-
You will need Internet connection.
-
You will also need a Webpage URL to load in URL's:
-
To get to this CLI fist you need to get to the Flask-Shell-Script repository.
Link:-> https://github.com/zecollokaris/Flask-Shell-Script
-
From there you can access Flask-shell-script.
-
Clone the project.
-
Once you done with cloning and project is on your device.
-
get into project folder (cd into project).
To work With this Django-shell-script
-
Make sure your inside the folder containing script.
-
Create Flask folder structure
source newFlask.sh .**Note there is a fullstop (.) at the end** ( source newFlask.sh . ) -
You Flask is ready HAPPY CODING :-)