Sunday, 19 February 2017

Simple Shell script to install and run your flask application for first time.

Simple shell script to clone your flask app , installing requirements, activating virtual environment and running the application. #!/bin/ksh CURRENT_DIR=`pwd` echo "please enter your repo link" #input your repo link read input_variable  #Read input echo $input_variable REPOURL=$input_variable #REPOURL=$input_variable gitdir=`basename...

Python Simple Flask Redis Tutorial

A simple Flask Redis Tutorial Install requirements : flask, redis Install virtual environment:  sudo apt-get install python3-venv Creating the python virtual environment:  python3 -m venv venv Add the root of the repository to the python path upon virtual environment activation:...

PHP Form submit without java script and submit button

Submit a form without submit button and  javascript submit We mostly prefer php form submit either using javascript or normal submit. But we can submit a form without submit button and  javascript have a look at the below code <?php if(isset($_POST['submit_x']) && isset($_POST['submit_x'])) {       echo $_POST['first_name'];    ...