-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a587591
commit 82c13eb
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,47 @@ | ||
# web_app | ||
Web App in Python using Flask for User management. | ||
|
||
This App is tested on Ubuntu 14.04.1 | ||
|
||
|
||
**1. Web User Creation** | ||
|
||
First of all create a normal user e.g. web | ||
``` | ||
sudo useradd web -m | ||
sudo passwd web | ||
sudo vim /etc/sudoers | ||
web ALL=(ALL) NOPASSWD: ALL | ||
``` | ||
|
||
**2. Flask Installation:** | ||
|
||
``` | ||
su - web | ||
sudo apt-get update | ||
sudo apt-get install python-pip git | ||
sudo pip install virtualenv | ||
mkdir flask | ||
cd flask | ||
virtualenv venv | ||
. venv/bin/activate | ||
sudo pip install Flask | ||
sudo pip install https://github.com/mitsuhiko/flask/tarball/master | ||
``` | ||
|
||
**3. Starting the App** | ||
``` | ||
git clone https://github.com/gkbijarniya/web_app.git | ||
cd web_app | ||
flask -a app run --host=0.0.0.0 | ||
and open browser and access | ||
http://IP_Address:5000 | ||
``` | ||
|
||
**4. Create/Modify/Delete Linux users along with Suodoers entry** | ||
|