Skip to content

Commit 8f52eb1

Browse files
committed
# Projeto completo
1 parent 5afece4 commit 8f52eb1

30 files changed

+1123
-0
lines changed

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/aws.xml

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/sql-query-builder.iml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
MIT License
2+
Copyright (c) 2024 Michael Bullet (michaelbullet.com)
3+
LinkedIn: https://www.linkedin.com/in/michael-bullet/
4+
Permission is hereby granted, free of charge, to any person obtaining a copy
5+
of this software and associated documentation files (the "Software"), to deal
6+
in the Software without restriction, including without limitation the rights
7+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the Software is
9+
furnished to do so, subject to the following conditions:
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18+
SOFTWARE.

backend/config.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Database configurations
2+
databases:
3+
mysql:
4+
pool_size: 5
5+
max_overflow: 10
6+
pool_timeout: 30
7+
pool_recycle: 3600
8+
9+
oracle:
10+
pool_size: 5
11+
max_overflow: 10
12+
pool_timeout: 30
13+
pool_recycle: 3600
14+
15+
postgresql:
16+
pool_size: 5
17+
max_overflow: 10
18+
pool_timeout: 30
19+
pool_recycle: 3600
20+
21+
mssql:
22+
pool_size: 5
23+
max_overflow: 10
24+
pool_timeout: 30
25+
pool_recycle: 3600
26+
27+
# Logging configuration
28+
logging:
29+
version: 1
30+
formatters:
31+
default:
32+
format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
33+
handlers:
34+
console:
35+
class: logging.StreamHandler
36+
formatter: default
37+
level: INFO
38+
file:
39+
class: logging.FileHandler
40+
formatter: default
41+
filename: 'logs/app.log'
42+
level: DEBUG
43+
root:
44+
level: INFO
45+
handlers: [console, file]
46+
47+
# API configuration
48+
api:
49+
host: '0.0.0.0'
50+
port: 5000
51+
debug: true
52+
secret_key: 'your-secret-key-here' # Mude isso em produção

backend/requirements.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Flask==3.0.0
2+
SQLAlchemy==2.0.25
3+
PyMySQL==1.1.0
4+
psycopg2-binary==2.9.9
5+
cx-Oracle==8.3.0
6+
pyodbc==5.0.1
7+
python-dotenv==1.0.0
8+
PyYAML==6.0.1
9+
marshmallow==3.20.1
10+
marshmallow-dataclass==8.6.0
11+
pytest==7.4.4
12+
black==23.12.1
13+
flake8==7.0.0
14+
mypy==1.8.0

backend/src/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
'''Arquivo de inicialização do backend'''

0 commit comments

Comments
 (0)