https://github.com/gabsouza-dev/webpy
https://github.com/gabsouza-dev/webpy
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gabsouza-dev/webpy
- Owner: gabsouza-dev
- License: mit
- Created: 2025-02-11T20:24:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-11T20:27:11.000Z (over 1 year ago)
- Last Synced: 2025-02-11T21:28:02.910Z (over 1 year ago)
- Language: HTML
- Homepage: https://webpy-ten.vercel.app
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🌎 Meu Site com Flask


Um site web simples desenvolvido com **Python** e **Flask**. Ele possui uma página inicial e uma página "Sobre". Além disso, há uma configuração de **GitHub Actions** para CI/CD.
---
## 📌 Recursos
✔️ Servidor web usando Flask
✔️ Estrutura simples e escalável
✔️ Suporte a templates HTML
✔️ Testes automatizados com **pytest**
✔️ CI/CD com **GitHub Actions**
---
## 🚀 Como Executar o Projeto
### 🔹 1. Clone o Repositório
```bash
git clone https://github.com/gabsouza-dev/webpy.git
cd webpy
```
### 🔹 2. Crie um ambiente virtual e instale as dependências
```bash
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
```
### 🔹 3. Execute o Servidor
```bash
python app.py
```
O site estará disponĂvel em **http://127.0.0.1:5000/** 🎉
---
## đź§Ş Rodando os Testes
Se houver testes, execute:
```bash
pytest
```
---
## 🔄 Integração ContĂnua
Este projeto usa **GitHub Actions** para CI. O workflow roda automaticamente nos eventos:
✔️ **push** para `main`
✔️ **pull request** para `main`
Verifique o status do pipeline no seu repositĂłrio na aba **Actions**.
---
## đź“‚ Estrutura do Projeto
```
webpy/
│-- app.py # Código principal do Flask
│-- requirements.txt # Dependências do projeto
│-- test_app.py # Testes automatizados
│-- templates/ # Páginas HTML
│ │-- index.html
│ │-- about.html
│-- static/ # Arquivos estáticos (CSS, JS, imagens)
│ │-- style.css
│-- .github/ # Configuração do GitHub Actions
│ │-- workflows/
│ │-- ci.yml
```
---
## 📜 Licença
Este projeto está sob a licença **MIT**. Sinta-se à vontade para usá-lo e modificá-lo! 🚀
---
## ✨ Autor
Feito por [Gabriel Souza](https://github.com/gabsouza-dev) 💻💡