Skip to content
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

Nestjs integration #55

Open
wants to merge 243 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
243 commits
Select commit Hold shift + click to select a range
652bd37
integrating nestjs
akoidan Apr 9, 2022
a819450
Added more classes
akoidan Apr 10, 2022
ed10876
Added more classes
akoidan Apr 10, 2022
3db3d77
Fixed db
akoidan Apr 10, 2022
c13df02
Fix
akoidan Apr 10, 2022
62e355b
Remove redundant modules
akoidan Apr 10, 2022
c4f4a3d
@BelongsTo is required to generate constraint
akoidan Apr 10, 2022
e62fbb8
Finished creating ORM
akoidan Apr 10, 2022
d88d256
Merge branch 'master' into nestjs
akoidan Apr 10, 2022
3d1680c
Fixed patch + created name
akoidan Apr 11, 2022
bc62f5e
Fixed patch + creatated name
akoidan Apr 11, 2022
3e6b2ca
Register works
akoidan Apr 11, 2022
4064fcd
added auth and some test
akoidan Apr 12, 2022
aa7bafa
Auth works
akoidan Apr 12, 2022
bdc8c85
Fixed auth
akoidan Apr 12, 2022
e89d605
fix test
akoidan Apr 12, 2022
fa914fc
tes
akoidan Apr 12, 2022
43107b6
Aded more auth test and fe and be methods
akoidan Apr 12, 2022
7dff725
fixed files lns
akoidan Apr 12, 2022
2371420
fixd links
akoidan Apr 12, 2022
41edae8
Google auth works
akoidan Apr 12, 2022
6e4d96c
Added tests to validate email
akoidan Apr 12, 2022
858c4df
remove default.json
akoidan Apr 12, 2022
2fd9334
Added facebooksignin test
akoidan Apr 12, 2022
734f2d6
Refactored email service
akoidan Apr 13, 2022
0822767
save changes + email
akoidan Apr 13, 2022
809df2f
added ci newback
akoidan Apr 13, 2022
6f8d8bc
fix
akoidan Apr 13, 2022
d1ece96
trigger
akoidan Apr 13, 2022
5b5d478
Fix
akoidan Apr 13, 2022
08dc57f
Rename auth
akoidan Apr 13, 2022
58659c0
refactor structure
akoidan Apr 13, 2022
66bb447
Another refactor of structure
akoidan Apr 13, 2022
43b3b92
Fixed migration sql
akoidan Apr 13, 2022
a2ce340
Fixed migrati
akoidan Apr 13, 2022
0cff238
Fixed ip
akoidan Apr 13, 2022
7a04643
Added ci badge
akoidan Apr 13, 2022
c90206a
Fixed test
akoidan Apr 13, 2022
ff7b319
Fixed tests
akoidan Apr 13, 2022
928a6c9
Fix
akoidan Apr 13, 2022
0dc046a
Added test extracted new repo
akoidan Apr 13, 2022
a9b2a76
Added more tests
akoidan Apr 13, 2022
a02ee07
Added codecov
akoidan Apr 13, 2022
a93fd10
test
akoidan Apr 13, 2022
8d21c64
Added codecov badge
akoidan Apr 13, 2022
acf0c78
readme badges
akoidan Apr 13, 2022
dbc86cc
Fix login
akoidan Apr 13, 2022
c31a90f
Added ws
akoidan Apr 13, 2022
3f4027d
Cleanup code
akoidan Apr 13, 2022
bce4ebf
fixed codecov
akoidan Apr 13, 2022
ca2d925
Fix module
akoidan Apr 13, 2022
457ef17
Fix ws, added node version
akoidan Apr 13, 2022
8bfea63
Added ws
akoidan Apr 13, 2022
1dce7e2
Fixed model types
akoidan Apr 14, 2022
f6f6cf8
ttsc ttypescript tsruntime
akoidan Apr 14, 2022
99f325b
Fixed types
akoidan Apr 14, 2022
3883b28
Fixed be tests
akoidan Apr 14, 2022
13eecab
Some things works
akoidan Apr 14, 2022
509d60c
Added log context
akoidan Apr 15, 2022
865b575
Added log context
akoidan Apr 15, 2022
c24b69e
Growl Error
akoidan Apr 15, 2022
f5a949a
Migrated prod
akoidan Apr 15, 2022
57acfda
checks
akoidan Apr 15, 2022
4490486
Fixed node-ts-config path, dist directory should not contain src, oth…
akoidan Apr 15, 2022
2c30f97
Added eslint conf
akoidan Apr 16, 2022
328b692
eslint backend
akoidan Apr 16, 2022
ce73436
Fixing image model
akoidan Apr 16, 2022
3d8dd2f
Fixed captcha and syncMessage
akoidan Apr 16, 2022
6593423
Fixed captcha inifinty loop
akoidan Apr 16, 2022
8ccc5b4
Refactor fetch api
akoidan Apr 16, 2022
797b179
Upload message refactor and image process
akoidan Apr 17, 2022
55359e9
Optimized preview work
akoidan Apr 17, 2022
7dd6678
Added print message
akoidan Apr 18, 2022
c8d9795
Fixed test
akoidan Apr 18, 2022
450d810
Added cache
akoidan Apr 18, 2022
ed10c1e
promisify instead of util promis
akoidan Apr 18, 2022
51a3bb4
Added migration from scratch
akoidan Apr 18, 2022
2f884b9
Structure transformers, continue working on printmesage and image sup…
akoidan Apr 18, 2022
cdfe480
Fix test
akoidan Apr 18, 2022
29e1703
Refactored transformers
akoidan Apr 18, 2022
51d2795
Refactored transformers
akoidan Apr 18, 2022
e11b374
Restructure code
akoidan Apr 18, 2022
0d9acc1
split data
akoidan Apr 19, 2022
c6999a8
fix imports
akoidan Apr 19, 2022
adaad14
fix imports
akoidan Apr 19, 2022
9a56380
Fixed types
akoidan Apr 19, 2022
8e52723
push
akoidan Apr 19, 2022
ef5aeca
Fixed types
akoidan Apr 20, 2022
d8b98fa
Fixed types
akoidan Apr 20, 2022
2a86e81
Fix types
akoidan Apr 20, 2022
5fdb8f0
fix
akoidan Apr 20, 2022
2759a2e
fix
akoidan Apr 28, 2022
d1094cf
fix
akoidan Apr 28, 2022
a38c044
fix
akoidan Apr 30, 2022
44d6916
Added more fles
akoidan Apr 30, 2022
f23d665
it compiles
akoidan May 1, 2022
4ba38a5
Fixed tests
akoidan May 1, 2022
9cdec2c
Fix coverage ignore since when root in src it's not required
akoidan May 1, 2022
38add53
Fix build
akoidan May 1, 2022
9c578d0
Remove old imports
akoidan May 1, 2022
043b2c2
Fixed tests
akoidan May 2, 2022
1647a55
Adding types
akoidan May 2, 2022
610b19c
types
akoidan May 2, 2022
eef152b
Redundant imports
akoidan May 2, 2022
4d9eed7
Added kubernetes for backend.yaml
akoidan May 14, 2022
14e501e
adde prob and namespace to kube
akoidan May 15, 2022
49d6dd4
Added more kubernetes conf. it works now
akoidan May 15, 2022
4dac553
Added tls
akoidan May 15, 2022
6c4c370
Added persistence storage to kube
akoidan May 16, 2022
70fd59c
maridb pv works
akoidan May 16, 2022
f862c22
Added ability to have multiple backends
akoidan May 18, 2022
27c6861
Fixed tests
akoidan May 19, 2022
ca437f8
fix
akoidan May 19, 2022
488bf88
Merge branch 'master' into nestjs
akoidan May 19, 2022
05750a1
Removed underscores_in_headers
akoidan May 19, 2022
2685205
Added ability to config pubsub through redis REDIS_PUBSUB
akoidan May 19, 2022
6f2323e
Fixed configs
akoidan May 19, 2022
ee4cb53
Separated model
akoidan May 19, 2022
fd656b2
Refactoring model
akoidan May 20, 2022
efc7f72
blah
anastasia-savi May 20, 2022
e919138
blah2
anastasia-savi May 20, 2022
8aceb5d
blah3
anastasia-savi May 20, 2022
0636871
blah4
anastasia-savi May 20, 2022
7b050c1
blah6
anastasia-savi May 20, 2022
11fd51f
blah6
anastasia-savi May 20, 2022
0188e63
blah6
anastasia-savi May 20, 2022
5935c6c
Merge pull request #56 from anastasia-savi/nestjs
akoidan May 20, 2022
e6b5801
save changes
akoidan May 21, 2022
5a1193f
save changes
akoidan May 21, 2022
1aca8cc
first directory
anastasia-savi May 21, 2022
e683018
second directory
anastasia-savi May 21, 2022
39a73c4
Fixed kube conf
akoidan May 21, 2022
abada1b
third directory
anastasia-savi May 21, 2022
27d199a
fourth directory
anastasia-savi May 21, 2022
8999f9b
fifth directory
anastasia-savi May 21, 2022
6205290
Merge pull request #57 from anastasia-savi/nestjs
akoidan May 21, 2022
f10722d
Added kube cert
akoidan May 21, 2022
0183eb4
Merge remote-tracking branch 'origin/nestjs' into nestjs
akoidan May 21, 2022
014d138
change subscribe
anastasia-savi May 22, 2022
428c6ee
ingress.yaml
akoidan May 22, 2022
5da5275
Fixed namespace
akoidan May 22, 2022
2e1327e
Merge pull request #58 from anastasia-savi/nestjs
akoidan May 22, 2022
470257f
Deployed pychat.org
akoidan May 22, 2022
123b080
Fixed node versions
akoidan May 22, 2022
3cab843
Merge remote-tracking branch 'origin/master' into nestjs
akoidan May 22, 2022
7224e24
Changed pull policy for remote
akoidan May 22, 2022
b9d6323
Merge branch 'master' into nestjs
akoidan May 22, 2022
04e0bd3
kube
akoidan May 22, 2022
3072d2a
Merge remote-tracking branch 'origin/master' into nestjs
akoidan May 22, 2022
5b031c9
Added static host url
akoidan May 22, 2022
1f63580
Merge remote-tracking branch 'origin/master' into nestjs
akoidan May 22, 2022
73ff4ba
Fixed ingress but doesnt work yet
akoidan May 22, 2022
6690cff
fix
akoidan May 22, 2022
31c5d27
Merge remote-tracking branch 'origin/master' into nestjs
akoidan May 22, 2022
534c95f
Added shared volume
akoidan May 22, 2022
c73cd5e
blah
akoidan May 22, 2022
e796317
Fixed returning photo
akoidan May 22, 2022
dcc1c47
Merge remote-tracking branch 'origin/master' into nestjs
akoidan May 22, 2022
3fccaba
removed ssh build into rpi
akoidan May 22, 2022
f7208c7
Refactored some messsages
akoidan May 23, 2022
ef8825a
Fixed spacing
akoidan May 24, 2022
07a46df
Refactored WsHandler and MesageProcessor
akoidan May 28, 2022
e8dde42
More refactoring
akoidan May 28, 2022
b0c4355
lol
akoidan May 14, 2023
04d0d2e
Update README.md
akoidan May 14, 2023
d9fa4f9
Update README.md
akoidan May 14, 2023
793379a
Update README.md
akoidan May 14, 2023
726d0a0
Update README.md
akoidan May 14, 2023
9d67ceb
Added postfix
May 19, 2023
6b74f64
Revert "Update README.md"
May 19, 2023
9c79563
Fix
May 19, 2023
e391e63
Fix
May 19, 2023
8291e27
test
akoidan May 21, 2023
fc1a5a1
Merge branch 'master' into nestjs
akoidan May 21, 2023
4e71f6b
Added turn server to kube
akoidan May 23, 2023
dbeb880
Merge branch 'master' into nestjs
akoidan May 23, 2023
226dc38
Merge branch 'master' into nestjs
akoidan May 23, 2023
21d8202
Fixed namings
akoidan May 23, 2023
e26dd54
load-balancer replaced for NodePort and it works
akoidan May 23, 2023
1d4d559
Addde README.md kube
akoidan May 23, 2023
369c043
Fixed proxy body size
akoidan May 23, 2023
1293432
12
akoidan May 23, 2023
cbf985f
Fixed storage price
akoidan May 23, 2023
29c5cb7
README.md
akoidan May 24, 2023
b3c96ad
Merge branch 'master' into nestjs
akoidan May 24, 2023
cfe7b60
Adding terraform
akoidan May 26, 2023
f7ca058
Fixed terraform
akoidan May 26, 2023
18c14b0
moved more to helms
akoidan May 26, 2023
62c58a7
Added ingress
akoidan May 26, 2023
f99b848
Moved all helm to charts
akoidan May 26, 2023
a6bab3e
Fix terraform chart
akoidan May 26, 2023
fb21ca0
Fixed terraform values
akoidan May 26, 2023
216e753
Refactored project a bit
akoidan May 26, 2023
da0ee93
Finished terraform
akoidan May 27, 2023
a3678e8
Fixe terraform
akoidan May 27, 2023
79f89d7
Playing with cert_manager
akoidan May 27, 2023
b5d7263
Merge branch 'master' into nestjs
akoidan May 27, 2023
8c082c0
Merge branch 'master' into nestjs
akoidan May 27, 2023
a99fca3
Fixed frontend
akoidan May 27, 2023
0a7becb
Terraform works w/o tls probably
akoidan May 27, 2023
b20b3f3
Terraform seems to work
akoidan May 27, 2023
679f7db
Added docker registry
akoidan May 27, 2023
4e10e7f
Docker registry works w/o password
akoidan May 27, 2023
50276c4
Docker coturn and postfix are stateless now
akoidan May 28, 2023
e77b871
Fixed docker images
akoidan May 28, 2023
f85717e
Fixed docker build backend
akoidan May 28, 2023
31b3fde
Fixed README.md for terraform
akoidan May 28, 2023
fec24b7
Finished docs
akoidan May 28, 2023
c4628ce
Formatted
akoidan May 28, 2023
3bd4185
Reformat code
akoidan May 28, 2023
31d269e
Setting up autorestoring from backups
akoidan May 28, 2023
9b3380c
Fixed a lot of terraform errors,
akoidan May 28, 2023
9fac2a7
All helm resources are working from terraform
akoidan May 28, 2023
7feb093
Increased backup timeout
akoidan May 28, 2023
ceb9c28
Increased backup timeout
akoidan May 28, 2023
5fdf609
ingress first works better
akoidan May 28, 2023
08942cd
Fixed registry
akoidan May 28, 2023
977e08c
asd
akoidan May 28, 2023
fbfedf4
asd
akoidan May 28, 2023
19fb5a4
Fix domain 3rd level
akoidan May 28, 2023
4f20ad2
k8s pv are note namespaced
akoidan May 29, 2023
492faa1
Fixed gitignore
akoidan May 29, 2023
b4808a8
Fixed domains to variables
akoidan May 29, 2023
04d41a5
Fixing variables describption
akoidan May 29, 2023
3832db1
Added docs
May 30, 2023
5a0ec65
Fixed terraform creation form. Will only prompt for required values
May 30, 2023
8d885a8
Improved variable declaration
akoidan May 30, 2023
8fd6d23
Fixed variables
akoidan May 30, 2023
4ae2f57
Added postfix persistent volume
akoidan May 30, 2023
bd2eb38
Fix
akoidan May 30, 2023
9e7f76e
Merge branch 'master' into nestjs
akoidan May 30, 2023
77f5a60
Fixed coker for backend
akoidan May 30, 2023
0caca7a
Merge branch 'master' into nestjs
akoidan May 30, 2023
7ac9f3a
Fixed docker for backend
akoidan May 30, 2023
5479f2b
Terraform fmt
akoidan May 30, 2023
654bd14
Fixed cloudflare infitivie loop
akoidan May 31, 2023
15bfec0
Fixed migration script
akoidan May 31, 2023
df32f9c
removed exclude files
akoidan Jun 1, 2023
c0f5aad
Fixed deps
akoidan Jun 1, 2023
883c4f8
12
akoidan Jun 25, 2023
3641eac
Merge branch 'master' into nestjs
akoidan Jun 26, 2023
be959c4
Merge branch 'master' into nestjs
akoidan Jun 26, 2023
5841b8d
Fix
akoidan Dec 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 18 additions & 7 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,22 +1,33 @@
# https://github.com/docker/hub-feedback/issues/1843
**
!download_content.sh
!backend/requirements.txt
!backend/manage.py
!backend/chat
!backend/templates
!newback/package.json
!newback/nest-cli.json
!newback/yarn.lock
!newback/tsconfig.build.json
!newback/tsconfig.json
!newback/src
!kubernetes/docker/backup/backup.sh
!common/src
!kubernetes
!frontend/src
!frontend/patches
!frontend/build
frontend/build/production.json
!frontend/package.json
!backend/requirements.txt
!backend/chat
!backend/templates
!backend/manage.py
!frontend/yarn.lock
!frontend/tsconfig.json
!frontend/tsconfig.node.json
!docker/populate
!docker/tornado
!kubernetes/frontend-old-pychat.org.json
!kubernetes/nginx-old-pychat.org.conf
!kubernetes/frontend-minikube.json
!kubernetes/docker/frontend/frontend-old-pychat.org.json
!kubernetes/docker/frontend/nginx-old-pychat.org.conf
!kubernetes/docker/frontend/frontend-minikube.json
!kubernetes/docker/docker/postfix/postfix_replacer.bash
!docker/nginx.conf
!docker/nginx
!docker/pychat.org/certificate.crt
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/backend.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/frontend.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/newback.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: NEWBE:pychat.org

on:
push:
branches: [ master, nestjs ]
paths:
- 'newback/**'

jobs:
test-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: 'v16.15'
- name: Cache multiple paths
uses: actions/cache@v2
with:
path: |
newback/node_modules
newback/yarn-cache
newback/codecov
key: ${{ runner.os }}-${{ hashFiles('newback/yarn.lock') }}
- name: Install npm dependencies
run: |
cd newback
yarn config set cache-folder `pwd`/yarn-cache
yarn install --frozen-lockfile
- name: Run tests
run: cd newback && yarn jest --config ./src/utils/jest.config.ts --runInBand --coverage --detectOpenHandles --coverageReporters json text
- name: Coverage
run: |
cd newback
ls ./codecov || curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x ./codecov
./codecov -t $CODECOV_TOKEN -f ./coverage/coverage-final.json

16 changes: 4 additions & 12 deletions .excludeMAIN → .gitignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
.gitBU
.excludeBU
.project
.pydevproject
.idea
md5
md5-wasm-example
test/
dump.rdb
backup.sh
data.sql
cron-bu
trash
README.txt
rootfs/etc/nginx/ssl/*
backend/data.sql
rootfs/etc/nginx/ssl/server.key
rootfs/etc/nginx/ssl/certificate.key
backend/chat/migrations/*
backend/chat/production.py
backend/chat/settings.py
backend/photos/*
kubernetes/cf-secret.yaml
kubernetes/oldbackend-secret.yaml
!backend/photos/.gitkeep
newback/photos/*
!newback/photos/.gitkeep
frontend/build/production.json
newback/src/config/env/default.json
Loading