Giter VIP home page Giter VIP logo

python-login-page's Introduction

(Server-01 ) Install MySQL on DataBase Server

yum update -y
dnf -y install @mysql
systemctl enable mysqld.service
systemctl start mysqld.service
systemctl status mysqld.service
mysql_secure_installation

Create a DB and table

mysql -u root -p <your pass>

Create a Database

create database anand;
use anand;

Create a Table

CREATE TABLE accounts (
    id int NOT NULL AUTO_INCREMENT,
    username varchar(255) NOT NULL,
    fullname varchar(255) NOT NULL,
    password varchar(255) NOT NULL,
    email varchar(255),
    designation varchar(255) NOT NULL,
    about_yourself varchar(255) NOT NULL,
    PRIMARY KEY (id)
);

Create a User and assign specific permissions

CREATE USER 'root'@'%' IDENTIFIED BY 'Anand@123';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%';
FLUSH PRIVILEGES;

( Server -02 ) Python Installation on RHEL 8.4


pre-required softwares

yum install wget,make,git -y

sudo dnf install wget yum-utils make gcc openssl-devel bzip2-devel libffi-devel zlib-devel

wget https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz 

tar xzf Python-3.9.6.tgz 

cd Python-3.9.6 

sudo ./configure --with-system-ffi --with-computed-gotos --enable-loadable-sqlite-extensions

sudo make -j ${nproc} 
sudo make altinstall 

Verify Python

python3.9 -V  

Other Pre-requirements

yum -y install gcc gcc-c++ kernel-devel
yum -y install mysql-devel openssl-devel

Get the code from GitHub

cd /opt
git clone https://github.com/lazy-anand/python-login-page.git
cd python-login-page

Chnage the DB details in main.py file

app.config['MYSQL_HOST'] = '<your DB IP>'
app.config['MYSQL_USER'] = 'root'
app.config['MYSQL_PASSWORD'] = '<your DB password>'
app.config['MYSQL_DB'] = '<Your DB>'

Create a Vertual ENV

python3.9 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Run the Application in Baground mode

nohup ./run &

Access the Application

Login Page : http://IP:5000/pythonlogin/
Registartion Page : http://IP:5000/pythonlogin/register

python-login-page's People

Contributors

anand-reddy7 avatar anandreddy71 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.