Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
325 commits
Select commit Hold shift + click to select a range
2c3858a
fix: (src/services/TokenService.ts) removendo throw new @Geoziihdev @…
stephanybrazeir0 Feb 26, 2025
188af10
fix: (src/routes/index.ts src/services/TokenService.ts) alteracao da …
stephanybrazeir0 Feb 26, 2025
e474a8e
feat: (prisma/seed.ts) adicao de tabelas populadas para testes @Geozi…
stephanybrazeir0 Feb 27, 2025
344459d
fix: (prisma/seed.ts) correcao do itemId do video @Geoziihdev @Lip29…
stephanybrazeir0 Mar 5, 2025
64d73cf
Refactor:(prisma/seed.ts src/mocks/userMock.ts) Criamos a pasta mocks…
Geoziihdev Mar 14, 2025
57425a1
Refactor:(src/services/TokenService.ts src/utils/types.ts) Movemos a …
Geoziihdev Mar 14, 2025
7cd1686
fix: ( src/services/TokenService.ts) Removemos o thrnow error do fetc…
Geoziihdev Mar 14, 2025
ca701d6
Merge pull request #7 from Aceleradora25/13/feat-endpoint-para-salvar…
stephanybrazeir0 Mar 18, 2025
0da65d4
feat(src/controllers/login/LoginController.test.ts) adicionamos teste…
Mar 19, 2025
97b8888
feat:(prisma/migrations/20250320145057_adicao_do_campo_modified_at_no…
Geoziihdev Mar 20, 2025
b5f4251
feat:(src/services/ExerciseService.ts) Criamos o metodo saveStatus e …
Geoziihdev Mar 20, 2025
a0bb3be
feat:(src/controllers/exercise/ExerciseController.ts src/services/Exe…
Geoziihdev Mar 20, 2025
7e56151
feat: (src/utils/constants.ts src/controllers/login/LoginController.t…
stephanybrazeir0 Mar 25, 2025
deabb7c
feat:(src/controllers/exercise/ExerciseController.ts src/routes/index…
Geoziihdev Mar 25, 2025
b7688ed
feat: (src/controllers/exercise/ExerciseController.ts src/mocks/userM…
stephanybrazeir0 Mar 26, 2025
32360fb
feat: :sparkles: (src/services/ExerciseService.ts src/controllers/exe…
stephanybrazeir0 Mar 26, 2025
c827626
Merge pull request #8 from Aceleradora25/14/fix-corrigir-testes-do-lo…
stephanybrazeir0 Mar 26, 2025
7f665f2
fix: (src/controllers/exercise/ExerciseController.test.ts)
stephanybrazeir0 Mar 27, 2025
c18d598
test(src/controllers/exercise/ExerciseController.test.ts) criamos tes…
Mar 28, 2025
e571754
fix(src/controllers/exercise/ExerciseController.ts) alteramos o if qu…
Mar 28, 2025
b0de66a
test: (src/controllers/exercise/ExerciseController.test.ts)
stephanybrazeir0 Mar 28, 2025
1b7eb01
test: (src/controllers/exercise/ExerciseController.test.ts src/contro…
stephanybrazeir0 Mar 28, 2025
9eefc66
Merge branch 'main' of https://github.com/Aceleradora25/e-acelera-bac…
stephanybrazeir0 Mar 31, 2025
f70ed7a
refactor: (src/controllers/exercise/ExerciseController.test.ts src/co…
stephanybrazeir0 Mar 31, 2025
a6c2ab8
fix: (package.json) corrigindo prisma
stephanybrazeir0 Mar 31, 2025
7e7a42c
Merge pull request #10 from Aceleradora25/fix-corrigindo-prisma-deploy
stephanybrazeir0 Mar 31, 2025
a28b7ee
feat: (src/index.ts src/utils/constants.ts)
stephanybrazeir0 Mar 31, 2025
35b135f
Merge pull request #11 from Aceleradora25/fix-corrigindo-origem-cors
stephanybrazeir0 Mar 31, 2025
97f2237
refactor: remocao do recebimento do campo modifiedAt pelo body para s…
stephanybrazeir0 Apr 16, 2025
ce75c79
feat:( src/index.ts src/middleware/cors.ts src/routes/index.ts) Criam…
Geoziihdev Apr 16, 2025
4daf950
refactor: mudando os titulos do it e removendo teste com o modifietAt
stephanybrazeir0 Apr 16, 2025
28435c9
refactor:(wip) corsMiddleware @Geoziihdev @Lip29bm
Geoziihdev Apr 22, 2025
b702599
refactor: remocao das variaveis de mock repetidas
stephanybrazeir0 Apr 23, 2025
16fd681
feat: configuramos o cors para retornar somente a urls especificas @G…
Apr 23, 2025
f10e311
fix: correcao do status code internet para internal server error
stephanybrazeir0 Apr 23, 2025
c4ad35c
refactor: Padronizamos para o nosso coding style @Geoziihdev @Lip29bm
Geoziihdev Apr 23, 2025
121acb7
fix: trocando findFirst por findFirstOrThrow no service
stephanybrazeir0 Apr 23, 2025
6ee4707
Merge pull request #9 from Aceleradora25/15/feat-endpoint-para-salvar…
Aceleradora25 Apr 25, 2025
4ac054c
feat: criamos novo arquivo corsUtils para separar as funcoes que nao …
Apr 25, 2025
85242f2
refactor: corrigir conflito @Geoziihdev @Lipe29bm
Geoziihdev Apr 25, 2025
fbaa043
Merge branch '17/feat-configurar-middleware-cors' of https://github.c…
Geoziihdev Apr 25, 2025
6540027
fix: corrigindo teste do findTopicById no getExerciseStatus e adicion…
stephanybrazeir0 Apr 28, 2025
b464a17
feat: aprimoramos verificacoes para permitir rotas sem origem mas exi…
Apr 28, 2025
342bbaa
Merge pull request #12 from Aceleradora25/17/feat-configurar-middlewa…
Aceleradora25 Apr 29, 2025
dda36f1
fix: trocando url do staging para main @stephanybrazeir0
stephanybrazeir0 Apr 29, 2025
4997484
fix: removendo barra @stephanybrazeir0
stephanybrazeir0 Apr 29, 2025
8d1b040
Merge pull request #13 from Aceleradora25/19/fix-corrigir-allowed-ori…
Geoziihdev Apr 29, 2025
1b1ea83
Revert "19/fix-corrigir-allowed-origins-para-url-main"
Aceleradora25 Apr 29, 2025
1ad2e75
Merge pull request #14 from Aceleradora25/revert-13-19/fix-corrigir-a…
stephanybrazeir0 Apr 29, 2025
4bb0807
refactor: comparar se o host tem permissao para fazer a request
peueueu Apr 29, 2025
7e59610
Merge pull request #15 from Aceleradora25/17/cors-middleware-changing…
peueueu Apr 29, 2025
9c8535c
refactor: remover console log
peueueu Apr 29, 2025
3b36b55
Merge pull request #16 from Aceleradora25/refactor-remove-console-log
peueueu Apr 29, 2025
00de304
fix: alteramos as verificacoes do corsMiddleware para permitir requi…
May 7, 2025
89f41a6
Merge pull request #17 from Aceleradora25/fix-resolver-o-suporte-a-CORS
Lip29bm May 8, 2025
cf57934
Merge branch 'main' of https://github.com/Aceleradora25/e-acelera-bac…
May 8, 2025
bd749b8
Merge pull request #18 from Aceleradora25/17/feat-configurar-middlewa…
Geoziihdev May 8, 2025
72189df
fix:Excluimos o sendCorsResponse @Geoziihdev @Lip29bm
Geoziihdev May 8, 2025
b600523
Merge pull request #19 from Aceleradora25/17/fix-cors-middleware
Geoziihdev May 9, 2025
19a30f9
fix remover cors check
peueueu May 9, 2025
4f995aa
Merge pull request #20 from Aceleradora25/17/fix-remover-cors-check
peueueu May 9, 2025
bc1fd3a
fix: permite que seja passado o elementType na requisição e não valid…
jauregao May 19, 2025
c79aa64
config: adicionado a pasta .vscode no .gitignore
jauregao May 20, 2025
b3a9961
fix: removido o @unique do itemId e criado a chave composta única ite…
jauregao May 20, 2025
d6e2067
fix: removido a validação de progresso existente, corrigido a função …
jauregao May 20, 2025
1a2f72b
Merge branch 'main' into 158/fix-salvamento-status-backend
jauregao May 21, 2025
d0c11d4
Merge pull request #21 from Aceleradora25/158/fix-salvamento-status-b…
jauregao May 21, 2025
46b3c43
feat: criado o UserService para manipular as requisições referentes a…
jauregao May 22, 2025
12e31f7
feat: criado o TopicService para manipular as requisições referentes …
jauregao May 22, 2025
7d803da
feat: criado o TopicControler com a função getTopicProgress
jauregao May 22, 2025
4ea471b
feat: criado a rota /topic/:topicId/progress
jauregao May 22, 2025
0d1045f
fix: endpoint valida se meu totalItens >= 0
jauregao May 22, 2025
31604b0
feat: suite de testes para o controller getTopicProgress
jauregao May 22, 2025
5392b28
fix: endpoint aceita que meu totalItens seja igual a 0
jauregao May 22, 2025
c8eefdc
fix: filtra por exercicio completo e não permite dividir por 0
jauregao May 22, 2025
7ef029d
fix: removido o middleware de cada rota e passado antes de todas as r…
jauregao May 22, 2025
5094adc
fix: removido o teste desnecessário
jauregao May 22, 2025
6cc00c6
fix: corrigido a validação que não permitia totalItens = 0
jauregao May 22, 2025
6aff765
Merge pull request #22 from Aceleradora25/21/feat-leitura-progresso-t…
Geoziihdev May 23, 2025
a904fe7
fix: melhora os testes do topicController e injeta a dependencia do u…
jauregao May 29, 2025
f618c36
fix: cria a função calculateProgress e implementa os testes unitários…
jauregao May 29, 2025
f554b4b
fix: installa a dependencia necessária para mockar o prisma com o jes…
jauregao May 29, 2025
e228d3e
fix: removido o tipo as any
jauregao Jun 3, 2025
cff96e8
Merge pull request #23 from Aceleradora25/21/feat-leitura-progresso-t…
jauregao Jun 3, 2025
6008f41
fix: remove o seed e os dados mockados @Lip29bm @Geoziihdev
jauregao Jun 3, 2025
1595b5c
fix: adiciona o themeId na tabela de progresso e executa a migration …
jauregao Jun 3, 2025
03c4666
refactor: refatora os controladores e seus respectivos testes @Geozii…
jauregao Jun 16, 2025
80ace1b
refactor: refatora os serviços e seus respectivos testes @Geoziihdev …
jauregao Jun 16, 2025
9afdb1b
refactor: refatora os demais arquivos do projeto e adiciona o prisma …
jauregao Jun 16, 2025
51324ae
refactor: remove id desnecessário da entidade progresso @Geoziihdev @…
jauregao Jun 16, 2025
4a2c096
refactor: aplica a migration do prisma, instala classValidator e clas…
jauregao Jun 16, 2025
cfe6f54
Merge branch 'main' into 21/feat-leitura-progresso-topico
jauregao Jun 17, 2025
8ac59ad
Merge pull request #24 from Aceleradora25/21/feat-leitura-progresso-t…
jauregao Jun 17, 2025
10eb6c4
Merge branch 'main' into 25/refactor
jauregao Jun 17, 2025
1596140
Merge pull request #25 from Aceleradora25/25/refactor
jauregao Jun 17, 2025
6f4cc14
fix: altera a ordem do middleware global e corrige problema de autent…
jauregao Jun 17, 2025
3e8bbc3
Merge pull request #26 from Aceleradora25/25/refactor
jauregao Jun 17, 2025
4b7f439
chore: agrupa os DTOs em uma só pasta e cria o StackByDto
jauregao Jun 24, 2025
227e712
chore: passa o novo caminho para os arquivos dependentes do DTO
jauregao Jun 24, 2025
ae0b89e
chore: adiciona as constants vindas do .env, cria o tipo StackyByEndp…
jauregao Jun 24, 2025
df6f654
feat: cria o StackByService, StackByController e sua respectiva rota
jauregao Jun 24, 2025
30fdd14
fix: corrige o nome do StackBy
jauregao Jun 24, 2025
8aea129
fix: padronização dos textos em inglês, mudança do metodo plainToClas…
jauregao Jun 25, 2025
1c27910
fix: usando o dto.endpoint como variável
jauregao Jun 25, 2025
29ad32e
Merge pull request #28 from Aceleradora25/29/requisicao-stackby
jauregao Jun 25, 2025
56be6fa
fix: remove cors
jauregao Jun 25, 2025
c187321
Merge pull request #29 from Aceleradora25/fix/remover-cors
jauregao Jun 25, 2025
1d79915
chore: update package.json
Geoziihdev Jul 1, 2025
1629b49
feat: cria função para calcular o progresso por entidade
jauregao Jun 30, 2025
7d875eb
refact: refatora o calculo de progreso pra que ele calcule baseado na…
jauregao Jul 1, 2025
bfaa108
refact: refatora os testes de progress service e remove os logs
jauregao Jul 1, 2025
716c8f8
fix: solve git commit tree diffs
peueueu Jul 1, 2025
785183a
fix: corrige o retorno de progresso para temas, melhora os testes e a…
jauregao Jul 2, 2025
96e545b
Merge pull request #31 from Aceleradora25/27/progresso-topicos-v2
jauregao Jul 3, 2025
9d131c9
Merge branch 'main' of https://github.com/Aceleradora25/e-acelera-back
Geoziihdev Jul 3, 2025
325d9b4
Setup initial redis structure
peueueu Jul 16, 2025
aa368a5
refactor: reduz quantidade de requests no calculo de progresso
jauregao Jul 16, 2025
e76faf5
refactor: refatora calculo de progresso
jauregao Jul 16, 2025
5d04c4e
Merge pull request #32 from Aceleradora25/feat/mostrar-progresso-temas
jauregao Jul 16, 2025
62c34f0
Merge branch 'main' of https://github.com/Aceleradora25/e-acelera-back
Geoziihdev Aug 4, 2025
39a0c34
fix: bug exercicio não encontrado @Geoziihdev @GabrielleGobbi @Jhamyllie
Geoziihdev Aug 4, 2025
2be32ff
Merge pull request #33 from Aceleradora25/fix/not-found-exercises
Geoziihdev Aug 4, 2025
ef004df
36: feat - adiciona middleware para retorno 404 personalizado @Geozii…
Geoziihdev Aug 5, 2025
0dd88cb
Merge pull request #34 from Aceleradora25/36/feat-404-handler
Geoziihdev Aug 6, 2025
9777941
docs: adiciona instruções detalhadas de deploy ao README
Geoziihdev Aug 6, 2025
d2bd8bb
feat: criamos uma API para filtrar entre os temas de nivelamento e au…
VyniciusBras Aug 8, 2025
b661483
feat: Implementação do ENUM para facilitar a manutenção do código e a…
VyniciusBras Aug 12, 2025
efc977d
feat: leitura de progresso de todos os temas de nivelamento por id @F…
FranTadiello Aug 12, 2025
c8248be
Refatorando arquivo de rota
VyniciusBras Aug 13, 2025
8be0926
Refatorando arquivo de rota
VyniciusBras Aug 13, 2025
2745fb8
Merge pull request #36 from Aceleradora25/32/feat-leitura-tipo-de-temas
VyniciusBras Aug 13, 2025
a1f6285
Merge branch 'main' of https://github.com/Aceleradora25/e-acelera-bac…
FranTadiello Aug 14, 2025
ac4f1aa
Fix: remove console log @TiciB @FranTadiello @andrea-leite
FranTadiello Aug 14, 2025
81828e4
Merge pull request #37 from Aceleradora25/33/feat-suporte-recuperacao…
FranTadiello Aug 14, 2025
53b8a65
Merge pull request #35 from Aceleradora25/docs/update-readme-deploy
Geoziihdev Aug 19, 2025
5e748e0
doc: adicionar env-example para mais visibilidade das env variables u…
peueueu Aug 25, 2025
3b00cb4
fix: case no path para rota do stackby
peueueu Aug 25, 2025
eabb82f
feat: bypass cache quando rodando projeto localmente
peueueu Aug 25, 2025
a5bac0f
Merge pull request #38 from Aceleradora25/disable-redis-on-dev-env
peueueu Aug 25, 2025
4f8cd56
refactor: refatora código para filtragem por nivelameto e auto-estudo…
Jhamyllie Aug 26, 2025
85f4a7a
fix: remove arquivo que não é mais necessário para o funcionamneto do…
Jhamyllie Aug 28, 2025
eb97695
chore: separate workflow files for ci, homolog and prod deploys
peueueu Sep 9, 2025
d9deef4
fix: remove lint step from ci workflow
peueueu Sep 9, 2025
6827506
fix: add env secrets for cache on ci workflow
peueueu Sep 9, 2025
ba0cbae
fix: null cache instance if disabled on env, check test step on ci wo…
peueueu Sep 9, 2025
30703b8
fix: remove test step from ci workflow, rever changes on progress con…
peueueu Sep 9, 2025
1f37145
fix: add missing env secrets for ci workflow
peueueu Sep 9, 2025
44e1aac
Merge pull request #40 from Aceleradora25/41/chore-auto-deploy-git-hooks
peueueu Sep 9, 2025
3eca520
Merge branch 'main' of github.com:Aceleradora25/e-acelera-back into #…
Jhamyllie Sep 9, 2025
0c446f4
fix: adicionar action checkout para homolog-deploy workflow
Jhamyllie Sep 9, 2025
a633ad4
Merge pull request #39 from Aceleradora25/#184-listagem-de-temas-de-a…
Jhamyllie Sep 9, 2025
ce1a7b6
fix: null args for cache
peueueu Sep 9, 2025
5f60cb6
Merge pull request #41 from Aceleradora25/fix-prod-deploy
peueueu Sep 9, 2025
bb5fc32
fix: disable cache on prod
peueueu Sep 9, 2025
390c017
Merge pull request #42 from Aceleradora25/disable-redis-cache
peueueu Sep 9, 2025
f9de42c
feat: create jest setup file with reflect-metadata import
peueueu Sep 12, 2025
2f0f576
feat: error middleware and error classes
peueueu Sep 12, 2025
18d73c2
feat: stackby filters mapping, mirroing stackby api filters
peueueu Sep 12, 2025
6bbfe7b
refactor: make filter argument optional, to avoid function call errors
peueueu Sep 12, 2025
e312078
refactor: check if the upstash url and token envs are set, instead of…
peueueu Sep 12, 2025
af1af4a
Merge pull request #43 from Aceleradora25/91/stackby-filters-foundation
peueueu Sep 12, 2025
1d2288e
fix: remove condition for cache enablement
peueueu Sep 29, 2025
d05fe58
fix: wrong env variable being used for cache enablement
peueueu Sep 29, 2025
b0c24ea
poc 45 testes
pedro-idiarte Oct 9, 2025
7adde65
poc 45 adminjs
pedro-idiarte Oct 13, 2025
d511620
feat adiciona entidades na tabela
pedro-idiarte Oct 17, 2025
7694f48
fix prisma import
pedro-idiarte Oct 18, 2025
e2a960b
feat: add model schema
pedro-idiarte Oct 18, 2025
f58dd1b
add: adicionado novos modelos no schema
pedro-idiarte Oct 20, 2025
9192dd3
fix: models no schemas do prisma
pedro-idiarte Oct 21, 2025
8b7b9f5
feat: Criando rotas poc admin @Geoziihdev @Pedro_idiarte
Geoziihdev Oct 21, 2025
6037bc8
feat: Liberando cors para requisição teste adminjs @Geoziihdev @Pedro…
Geoziihdev Oct 21, 2025
e9418d6
fix: fix package e yarn lock
pedro-idiarte Oct 22, 2025
812894b
feat: botão movido para fora do menu do usuario e refatorado funciona…
pedro-idiarte Nov 4, 2025
de42f06
feat:Adiciona autenticação para múltiplos usuários no AdminJS, inclui…
Geoziihdev Nov 6, 2025
24f4312
feat: configurar AdminJS para criar e editar usuários com senha e roles
Geoziihdev Nov 6, 2025
58fd5ac
feat: movendo botao nova api para dentro da hud usuario
pedro-idiarte Nov 12, 2025
4e39ec4
feat: finalização suporte a feature flag
pedro-idiarte Nov 13, 2025
6423970
fix: ajuste de id da entidade Progress @pedro-idiarte
FranTadiello Nov 14, 2025
489a3b3
chore: cria script para popular banco
Geoziihdev Nov 18, 2025
566547c
chore: popula tabela de topics e vincula aos temas
peueueu Nov 18, 2025
2460a17
chore: criar script para popular banco parte 2 @Geoziihdev @FranTadie…
Geoziihdev Nov 18, 2025
40cda44
feat: refatoracao do schema e criacao dos services e controllers de t…
pedro-idiarte Nov 18, 2025
7e2b3fb
feat: refatoracao inicio adminjs e criacao de controllers e services …
pedro-idiarte Nov 18, 2025
22a29d5
feat: criacao dtos para tabelas e fix nas respostas de erros e refato…
pedro-idiarte Nov 19, 2025
76e01f8
feat: criar controllers e services de topic, exercises e theme @Pedro…
FranTadiello Nov 21, 2025
65c2ba7
feat: ajustar schema e seed
FranTadiello Nov 21, 2025
a3be968
feat: refatorar seed para popular com dados das tabelas csv @Pedro-Id…
FranTadiello Nov 24, 2025
06b1b5e
refactor: refatora endpoints
pedro-idiarte Nov 25, 2025
a10b5e0
fix: usa prisma na versao 6
pedro-idiarte Nov 25, 2025
d861903
feat: inclusao keys no env exemple
pedro-idiarte Nov 29, 2025
ec82a3a
refactor: simplifica retorno do stackby
thaina-lopes Dec 2, 2025
30b9e52
fix: remove comando prisma migrate deploy do arquivo ci.yml
pedro-idiarte Dec 8, 2025
2845c73
Merge pull request #46 from Aceleradora25/55/feat-implementacao-admin…
peueueu Dec 8, 2025
f4ff731
fix: removeskip-seed param from prisma migrate deploy cmd
peueueu Dec 8, 2025
5b321cb
Merge pull request #48 from Aceleradora25/fix-build-unknown-cmd-prisma
peueueu Dec 8, 2025
166c1e5
fix: remove migrações incorretas
Geoziihdev Dec 9, 2025
0ace71c
fix: remove package.lock.json desatualizado
Geoziihdev Dec 9, 2025
8acc364
fix: mergeando com a branch main
Geoziihdev Dec 9, 2025
54b111b
fix: correção das migrações
Geoziihdev Dec 9, 2025
24482a6
Merge pull request #45 from Aceleradora25/48/feat-multiplos-usuarios
Geoziihdev Dec 9, 2025
0e48467
Merge pull request #47 from Aceleradora25/262/refactor-return-single-…
GabrielleGobbi Dec 9, 2025
a8303c1
chore: add dist folder to .gitignore
peueueu Dec 9, 2025
3778b0f
chore: add biome.js config file for linter & formatter
peueueu Dec 9, 2025
f171bb9
chore: change jest.config extension for .cjs
peueueu Dec 9, 2025
df85ae6
chore: add tsconfig.build and add support for import path alias
peueueu Dec 9, 2025
98c9115
chore: linter on adminjs-styled-components.d.ts
peueueu Dec 9, 2025
6ffc6b6
chore: use path alias import on dtos
peueueu Dec 9, 2025
ffe8bc4
chore: use path alias import on controllers
peueueu Dec 9, 2025
89b281a
chore: use path alias import on utils
peueueu Dec 9, 2025
adcfd79
chore: use path alias import on errors
peueueu Dec 9, 2025
c3d93af
chore: use path alias import on services
peueueu Dec 9, 2025
992903f
chore: use path alias import on middlewares
peueueu Dec 9, 2025
b79a986
chore: use path alias import on helpers, config files, types.
peueueu Dec 9, 2025
5d55f51
chore: use path alias import on index and routes
peueueu Dec 9, 2025
8d60e2a
Merge branch 'main' of github.com:Aceleradora25/e-acelera-back into f…
peueueu Dec 9, 2025
932f630
chore: change vercel.json to look at the dist dir
peueueu Dec 9, 2025
106f6d2
fix: remove path aliases for imports
peueueu Dec 10, 2025
5b63542
Merge pull request #50 from Aceleradora25/fix-build-with-nodenext-mod…
peueueu Dec 10, 2025
3afc13f
fix: regenerate package-lock.json and change install command from hom…
peueueu Dec 10, 2025
3be47bb
fix: explicitly set @rollup/rollup-linux-x64-gnu in the opt dependenc…
peueueu Dec 10, 2025
1e9f7cf
fix: overrides rollup with wasm-node version for deploy experiment
peueueu Dec 10, 2025
bbc9edc
chore: remove adminjs e dependencias
pedro-idiarte Jan 6, 2026
de55bd7
fix(theme): corrigir ThemeService e habilitar métodos CRUD
Geoziihdev Jan 7, 2026
9bb153b
fix(theme): corrige fluxo de atualização e implementa PATCH e delete …
Geoziihdev Jan 9, 2026
28c3765
Merge branch 'main' into 60/chore-remocao-adminjs
jauregao Jan 9, 2026
fd2d5b2
Merge pull request #52 from Aceleradora25/60/chore-remocao-adminjs
jauregao Jan 9, 2026
5188d60
Merge branch 'main' into feat/theme-crud
Geoziihdev Jan 9, 2026
d21925d
fix: retira import não utilizado
Geoziihdev Jan 9, 2026
62ba24a
Fix: Remove arquivo não utilizado
Geoziihdev Jan 9, 2026
e30dae3
fix: Remove console.log
Geoziihdev Jan 12, 2026
464f811
Merge pull request #53 from Aceleradora25/feat/theme-crud
Geoziihdev Jan 15, 2026
e5ebcf9
feat: criacao createExercises e updateExercises e refatoracao de exer…
pedro-idiarte Jan 30, 2026
1971683
feat: cria crud completo para topics @andrea-leite
FranTadiello Jan 30, 2026
6df9a69
fix: ajusta delete de tópico
FranTadiello Feb 6, 2026
ff6796a
feat: implementa paginação e filtros de intervalo (10, 25, 100) na ro…
Geoziihdev Feb 9, 2026
68474fc
feat: implementa paginacao em topics, exercises e themes
FranTadiello Feb 10, 2026
d0adad7
Merge pull request #54 from Aceleradora25/62/feat-crud-topicos
FranTadiello Feb 11, 2026
6f3349f
fix: resolve conflitos Controller e Service Topic
FranTadiello Feb 12, 2026
911ccc1
fix isActive em exercises e refac updated exercise dto
pedro-idiarte Feb 16, 2026
b7725a8
refactor:centralizar lógica de paginação em utils @andrea-leite
FranTadiello Feb 16, 2026
38acfa0
Merge pull request #56 from Aceleradora25/61/feat-paginacao-listagem-cms
FranTadiello Feb 16, 2026
1f48cc3
Merge branch 'main' into 60/chore-remocao-adminjs
pedro-idiarte Feb 20, 2026
d8cf977
resolve bug da api do stackby
Geoziihdev Feb 24, 2026
e6be99b
Merge pull request #58 from Aceleradora25/fix-stackby-api-route
Geoziihdev Feb 24, 2026
c259c4a
Merge pull request #55 from Aceleradora25/283-feat/exercise-crud
Jhamyllie Feb 25, 2026
836c0fc
Updated import statements to use relative paths.
peueueu Mar 2, 2026
bca5499
Merge pull request #59 from Aceleradora25/hotfix-prod-deploy-tsconfig…
peueueu Mar 2, 2026
fa6720c
fix: ordenar cards pelo campo sequence @pedro-idiarte
Geoziihdev Mar 6, 2026
7984323
feat: ordenar dados do Stackby pelo campo field.sequence e ajustar re…
Geoziihdev Mar 6, 2026
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
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
pull_request:
branches:
- main

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
env:
DATABASE_URL: ${{secrets.DATABASE_URL}}
NEXTAUTH_SECRET: ${{secrets.NEXTAUTH_SECRET}}
STACKBY_SECRET_KEY: ${{secrets.STACKBY_SECRET_KEY}}
STACKBY_BASE_URL: ${{secrets.STACKBY_BASE_URL}}
CACHE_ENABLED: ${{secrets.CACHE_ENABLED}}
CACHE_TTL: ${{secrets.CACHE_TTL}}
UPSTASH_REDIS_REST_URL: ${{secrets.UPSTASH_REDIS_REST_URL}}
UPSTASH_REDIS_REST_TOKEN: ${{secrets.UPSTASH_REDIS_REST_TOKEN}}

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'





27 changes: 0 additions & 27 deletions .github/workflows/development.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/homolog-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Homolog Deploy

on:
push:
branches:
- main

concurrency:
group: homolog-deploy-${{ github.ref }}
cancel-in-progress: true

jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: homolog
url: https://homolog-e-acelera-back.vercel.app/

steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "20"

- name: Install Dependencies
run: npm install --legacy-peer-deps

- name: Build
run: npm run build

- name: Deploy to Homolog
run: |
echo "Commit from main being deployed: $(git rev-parse origin/main)"
echo "Vercel will handle the build & deployment."
echo "Check Vercel dashboard for deployment status at: https://vercel.com/aceleradora-agils-projects/e-acelera-back/deployments?environment=preview"
44 changes: 44 additions & 0 deletions .github/workflows/prod-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Production Deploy

on:
workflow_dispatch:

concurrency:
group: prod
cancel-in-progress: true

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Sync staging branch with main
run: |
git config user.name "eacelera-back-deploy-bot[bot]"
git config user.email "eacelera-back-deploy-bot[bot]@users.noreply.github.com"

git fetch origin

if git ls-remote --exit-code --heads origin staging; then
git checkout -B staging origin/staging
else
git checkout -B staging
fi

git reset --hard origin/main
git push origin staging --force
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Deploy to production
run: |
echo "Starting production deploy..."
echo "Commit from main being deployed: $(git rev-parse origin/main)"
echo "Vercel will handle the build & deployment."
echo "Check Vercel dashboard for deployment status at: https://vercel.com/aceleradora-agils-projects/e-acelera-back/deployments?environment=production"

8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# See https:help.github.com/articles/ignoring-files/ for more about ignoring files.


# dependencies
/node_modules
Expand All @@ -15,6 +16,7 @@

# production
/build
/dist

# misc
.DS_Store
Expand All @@ -26,6 +28,7 @@ yarn-debug.log*
yarn-error.log*

# local env files
.env*
.env*.local

# vercel
Expand All @@ -34,3 +37,6 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

# editor
.vscode
87 changes: 87 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Instruções de Configuração do Projeto

### Passos iniciais:

1. Execute o comando para instalar as dependências do projeto:
```bash
npm install
```

2. Crie um banco de dados PostgreSQL no DBeaver ou PgAdmin com o nome **eacelera-dev**.

3. Na raiz do projeto, crie um arquivo `.env`.

4. Adicione a seguinte variável de ambiente ao arquivo `.env` para configurar a conexão com o banco de dados:
```env
DATABASE_URL=postgres://{seu_usuario}:{sua_senha}@localhost:5432/eacelera-dev
```
Substitua `{seu_usuario}` e `{sua_senha}` pelos seus dados de acesso ao banco no DBeaver ou PgAdmin.

---

# Gerenciamento de Migrações

### Aplicar migrações no ambiente local:

- Para aplicar as migrações pendentes no banco de dados de desenvolvimento local, use o comando:
```bash
npx prisma migrate dev
```

### Aplicar migrações no ambiente de Staging:

- Para aplicar migrações no banco de dados do ambiente de staging, utilize:
```bash
npx prisma migrate deploy
```

# Criar Migrações

- Para gerar uma nova migração no ambiente local, use o seguinte comando, substituindo `{nome_da_migracao}` por uma descrição da migração:
```bash
npx prisma migrate dev --name {nome_da_migracao}
```

**Importante:**
- Sempre crie as migrações localmente, na sua branch de desenvolvimento.
- Nunca crie ou aplique migrações diretamente na branch de staging.
- Certifique-se de que o diretório `prisma/migrations` seja comitado no repositório Git após a criação das migrações.

# Deploy BACKEND: (Vercel)
### Etapas: feature → main → staging

1. Atualizar a branch main local
```bash
git checkout main
git pull origin main
```
2. Criar PR da feature para main (no GitHub)

- Vá até o GitHub > Pull Requests > New Pull Request.
- Base: main | Compare: feature/nome-da-sua-branch
- Escreva o título e descrição do que foi feito.
- Após aprovação do time, clique em Merge pull request > Confirm merge.

### Obs:
Deploy no Vercel (automaticamente após merge na main): Vercel detecta mudanças na branch main e faz o deploy no ambiente configurado (staging).

### Para acompanhar:
- Acesse: https://vercel.com/dashboard
- Clique no projeto e-acelera-back
- Veja a aba Deploys e abra o log se necessário

3. Atualizar a branch staging com o código da main
```bash
git checkout staging
git pull origin staging
git merge main
git push origin staging
```
### Obs:
Embora o Vercel use main para deploy, manter staging atualizado garante padronização e controle de histórico.

4. Verificar se está no ar
- Acesse:https://e-acelera-back.vercel.app/
- Teste endpoints e rotas.
- Valide se a funcionalidade foi publicada corretamente.
- Se tudo estiver ok, o card pode ser movido para PRONTO (não há produção separada).
54 changes: 54 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
"assist": {
"actions": {
"recommended": true,
"source": {
"organizeImports": "on",
"useSortedKeys": "on"
}
}
},
"files": {
"includes": ["./src/**/*.ts"]
},
"formatter": {
"attributePosition": "auto",
"enabled": true,
"formatWithErrors": false,
"indentStyle": "tab",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 80
},
"javascript": {
"formatter": {
"arrowParentheses": "always",
"bracketSameLine": false,
"bracketSpacing": true,
"enabled": true,
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"semicolons": "always",
"trailingCommas": "all"
},
"linter": {
"enabled": true
}
},
"json": {
"formatter": {
"enabled": true,
"trailingCommas": "none"
}
},
"linter": {
"rules": {
"style": {
"useImportType": "on"
},
"suspicious": "warn"
}
},
"root": true
}
4 changes: 4 additions & 0 deletions client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { PrismaClient } from "@prisma/client";

const prisma = new PrismaClient();
export default prisma;
19 changes: 19 additions & 0 deletions env-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
DB_USER=
DB_PASSWORD=
DB_NAME=
DB_HOST=
DB_PORT=

DATABASE_URL=postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}

NEXTAUTH_SECRET=
STACKBY_SECRET_KEY=
STACKBY_BASE_URL=

CACHE_ENABLED=FALSE
CACHE_TTL=28800
UPSTASH_REDIS_REST_URL=
UPSTASH_REDIS_REST_TOKEN=

FLAGSMITH_SERVER_KEY=
NODE_ENV=development
21 changes: 21 additions & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// const { pathsToModuleNameMapper } = require('ts-jest');
// const { compilerOptions } = require('./tsconfig.json');

/** @type {import("ts-jest").JestConfigWithTsJest} */
module.exports = {
preset: "ts-jest/presets/default-esm",
testEnvironment: "node",
extensionsToTreatAsEsm: [".ts"],
transform: {
"^.+\\.ts?$": ["ts-jest", {
useESM: true,
diagnostics: {
ignoreCodes: [151002]
}
}],
},

moduleNameMapper: {
"^(\\.{1,2}/.*)\\.js$": "$1",
},
};
1 change: 1 addition & 0 deletions jest.setup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "reflect-metadata";
Loading