Skip to content

Update Project #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 34 commits into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
ee114f5
- Criado a tela de cadastro de usuario
jprogram Jun 19, 2024
aea5297
- update gitignore (node_modules + venv)
jprogram Jun 21, 2024
f1f23dc
- update pycache
jprogram Jun 21, 2024
a055710
Old code
jprogram Jun 21, 2024
f2b4146
tweak in docker-compose
jprogram Jun 21, 2024
53b6a4e
separate the project, backend
jprogram Jun 21, 2024
680fb72
separate the project, front end
jprogram Jun 21, 2024
2e91413
files removed
jprogram Jun 21, 2024
2e2ca44
- Updated requirements
jprogram Jun 24, 2024
72491cf
- Creating bats files to open the project
jprogram Jun 24, 2024
2dc6c15
- update git ignore
jprogram Jun 25, 2024
fb459b2
- update docker-compose
jprogram Jun 25, 2024
54aec61
- update backend + frontend
jprogram Jun 25, 2024
a940105
- Updated dependency versions
jprogram Jun 26, 2024
8eb87eb
- the .env was adjusted
jprogram Jun 27, 2024
beb5703
- add v-model to get the data and send it to the backend
jprogram Jun 27, 2024
bb11ce7
- fixing bug to connect with mongo db
jprogram Jun 27, 2024
d91482e
- Frontend adjustments
jprogram Jul 3, 2024
7052fb0
- add migrations
jprogram Jul 4, 2024
b3c5e38
- init setup migrations
jprogram Jul 5, 2024
3b1b4d1
- update gitignore
jprogram Jul 5, 2024
007ad7e
- add jwt + 2fa in project
jprogram Jul 8, 2024
7843cb7
- adding generate qr code 2FA
jprogram Jul 9, 2024
deed5ef
- modified frontend style and tweaks to 2FA verification
jprogram Jul 9, 2024
14a8fa5
- add validation in forms Login and Register
jprogram Jul 9, 2024
2508bf2
- Add the option to enter the 2FA code at login and, in addition, whe…
jprogram Jul 11, 2024
e12eb01
- Making Readme.md more informative
jprogram Jul 12, 2024
f0a0840
- ignore logs
jprogram Jul 12, 2024
e303b9d
- update .env example
jprogram Jul 12, 2024
aef5ef0
- update docker-compose
jprogram Jul 12, 2024
2d70ab3
- log + rabbitmq
jprogram Jul 12, 2024
4e42916
Delete backend/.env
jprogram Jul 12, 2024
84d2676
- Add GitHub Actions workflow for CI/CD
jprogram Jul 12, 2024
d3cc227
- update
jprogram Jul 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: CI/CD Pipeline

on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop

jobs:
build-backend:
name: Build and Test Backend
runs-on: ubuntu-latest

services:
mongo:
image: mongo:latest
ports:
- 27017:27017

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'

- name: Install dependencies
working-directory: ./backend
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt

build-frontend:
name: Build Frontend
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'

- name: Install dependencies
working-directory: ./frontend
run: npm install

- name: Build project
working-directory: ./frontend
run: npm run build

deploy-frontend:
name: Deploy Frontend to GitHub Pages
runs-on: ubuntu-latest
needs: build-frontend
if: github.ref == 'refs/heads/main'

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: develop
folder: frontend/dist
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
/relatorios
app/__pycache__
app/logs
*.docx
*.docx
/backend/venv/*
**/node_modules/
**/__pycache__/
/frontend/package-lock.json
/backend/.env
/backend/logs/*
Loading
Loading