https://github.com/rustamovakrom/flaskappauthentifikation
Authorization system for flask
https://github.com/rustamovakrom/flaskappauthentifikation
flask python
Last synced: about 2 months ago
JSON representation
Authorization system for flask
- Host: GitHub
- URL: https://github.com/rustamovakrom/flaskappauthentifikation
- Owner: RustamovAkrom
- Created: 2024-05-23T15:34:00.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-10-15T15:30:38.000Z (7 months ago)
- Last Synced: 2025-01-11T10:16:35.000Z (4 months ago)
- Topics: flask, python
- Language: Python
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# FlaskAppAuthentifikation
## Creating on Flask## Runing:
### 1. Create and activate enviroment
### Windows:
~~~shell
python -m venv env
env\Scripts\activate
~~~
### Linux
~~~bash
python3 -m venv env
source env/bin/activate
~~~### 2. Install modules
~~~shell
pip install -r requirements.txt
~~~### 3. Initialization Database
~~~shell
flask db init
flas db migrate -m "Initial migration"
flask db upgrade
~~~
### 4. Run
~~~shell
python run.py
~~~
---
## Flask - Ci / Cd :
+ ### Create dir on your project.
```.github/workflows/python-app.yaml```+ ### Example -
~~~yaml
## python-app.yamlname: Python application
on:
push:
branches:
- mainpull_request:
branches:
- mainjobs:
build:runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Load .env file
run: |
echo "SECRET_KEY = 'you-will-never-gues'" >> .env
echo "DATABASE_URL = 'sqlite:///sqlite.db'" >> .env- name: Run tests
run: |
python -m pytest
~~~