forked from su-ntu-ctp/Flask-Docker-App
-
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
9b46cc5
commit a0b1370
Showing
1 changed file
with
92 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 |
---|---|---|
@@ -0,0 +1,92 @@ | ||
# Flask-Docker-App | ||
# User-Authentication-in-Flask | ||
|
||
## Set up & Installation. | ||
|
||
### 1 .Clone/Fork the git repo and create a virtual environment | ||
**Windows** | ||
|
||
```bash | ||
git clone https://github.com/Dev-Elie/User-Authentication-in-Flask.git | ||
cd User-Authentication-in-Flask | ||
py -3 -m venv venv | ||
|
||
``` | ||
**macOS/Linux** | ||
|
||
```bash | ||
git clone https://github.com/Dev-Elie/User-Authentication-in-Flask.git | ||
cd User-Authentication-in-Flask | ||
python3 -m venv venv | ||
|
||
``` | ||
2 .Activate the environment | ||
|
||
**Windows** | ||
|
||
```venv\Scripts\activate``` | ||
|
||
**macOS/Linux** | ||
|
||
```. venv/bin/activate``` | ||
or | ||
```source venv/bin/activate``` | ||
|
||
### 3 .Install the requirements | ||
|
||
Applies for windows/macOS/Linux | ||
|
||
``` | ||
pip install -r requirements.txt | ||
``` | ||
|
||
### 5. Run the application | ||
`python app.py` | ||
|
||
# OR | ||
|
||
## Create a new application from scratch | ||
|
||
Create a directory with a name "Flask-Docker-App" | ||
|
||
Navigate to the newly created directory | ||
|
||
`cd Flask-Docker-App` | ||
|
||
Create a virtual environment | ||
|
||
**Windows** | ||
`py -3 -m venv venv` | ||
|
||
**macOS/Linux** | ||
`python3 -m venv venv` | ||
|
||
2 .Activate the environment | ||
|
||
**Windows** | ||
|
||
```venv\Scripts\activate``` | ||
|
||
**macOS/Linux** | ||
|
||
```. venv/bin/activate``` | ||
or | ||
```source venv/bin/activate``` | ||
|
||
### 3 .Install Flask | ||
|
||
`pip install Flask` | ||
|
||
### 4. Create the required files | ||
Create two files;app.py and Dockerfile | ||
`touch app.py Dockerfile` | ||
|
||
|
||
</br> | ||
<div align="center"><h1>Follow me on Twitter</h1></div> | ||
<p align="center"> <a href="https://twitter.com/dev_elie" target="blank"><img src="https://img.shields.io/twitter/follow/dev_elie?logo=twitter&style=for-the-badge" alt="dev_elie" /></a> </p> | ||
|
||
|
||
|