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

[이진우] sprint12 #87

Open
wants to merge 99 commits into
base: express-이진우
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
6884d8f
chore : set ts setting
ajantang Nov 5, 2024
efab5d3
feat : add base template & validate middlewares
ajantang Nov 5, 2024
a1d215a
feat : add prisma code
ajantang Nov 5, 2024
30d93e4
feat : add user repo functions
ajantang Nov 5, 2024
dd62386
feat : add encryption, decryption function for password
ajantang Nov 5, 2024
6536a01
feat : add auth controller code
ajantang Nov 5, 2024
805481c
feat : add token function
ajantang Nov 6, 2024
037e1e5
feat : apply token functions in sign in API logic
ajantang Nov 6, 2024
2536e1f
feat : change validate middleware
ajantang Nov 6, 2024
17d034f
feat : apply custom error
ajantang Nov 6, 2024
06403c8
feat : replace temp error response log
ajantang Nov 6, 2024
7c1890d
feat : add client/server error handling code
ajantang Nov 6, 2024
fa21402
feat : add base post controller functions
ajantang Nov 6, 2024
eecea24
feat : add access token verify middleware & add gitignore dist folder
ajantang Nov 6, 2024
3ed0789
feat : add post/product validate middleware
ajantang Nov 7, 2024
49900da
feat : fix incorrect code
ajantang Nov 7, 2024
5d934db
feat : add post repo functions
ajantang Nov 7, 2024
b94f18a
style : divide interface of post repo param
ajantang Nov 7, 2024
8d62875
style : divide interface of user repo param
ajantang Nov 7, 2024
7fe4727
feat : add post selector & change prisma column
ajantang Nov 7, 2024
c0b30af
feat : add base post service functions & migrate DB
ajantang Nov 7, 2024
4813ead
feat : add product repo functions
ajantang Nov 7, 2024
6586fe1
feat : add favorite post repo functions
ajantang Nov 7, 2024
97f5477
feat : add favorite product repo functions
ajantang Nov 7, 2024
39fa0c4
feat : add favorite product tag & image repo functions
ajantang Nov 7, 2024
b126c4f
feat : add favorite product comment repo functions
ajantang Nov 7, 2024
8d7b1ca
feat : add post image repo functions
ajantang Nov 7, 2024
9f8b086
feat : set select of post repo functions
ajantang Nov 7, 2024
301ccae
feat : add temp mapping logic of post API
ajantang Nov 7, 2024
9525879
feat : apply post service function
ajantang Nov 8, 2024
61b166c
style : delete test log code
ajantang Nov 8, 2024
38e9ab3
style : delete test log code
ajantang Nov 8, 2024
54f7116
feat : add check product authorizion function
ajantang Nov 8, 2024
fb6f9e9
feat : add product type & selector & mapper
ajantang Nov 8, 2024
98c2ed2
feat : add product service functions & apply tag/image repo functions
ajantang Nov 8, 2024
b3b922b
feat : add post controller functions
ajantang Nov 8, 2024
f76e560
feat : add query validate middleware
ajantang Nov 8, 2024
139a8fc
feat : apply validtate query middleware in get list API
ajantang Nov 8, 2024
fd545a0
fix : add missing code
ajantang Nov 8, 2024
d3ec7ac
fix : add missing code
ajantang Nov 8, 2024
322c5bf
feat : apply product router
ajantang Nov 8, 2024
e1507e2
fix : incorrect code
ajantang Nov 8, 2024
f9ab1c8
feat : add user service functions
ajantang Nov 8, 2024
6cf9389
feat : apply password update code in modify user API
ajantang Nov 8, 2024
1f1862f
feat : add user controller functions
ajantang Nov 8, 2024
e9060db
feat : apply user router
ajantang Nov 8, 2024
b65073e
feat : add post comment selector & mapper
ajantang Nov 9, 2024
ee8628c
feat : add post comment API logic
ajantang Nov 9, 2024
4303d4a
feat : add product comment types
ajantang Nov 9, 2024
04e0cca
feat : exchange temp error message
ajantang Nov 9, 2024
40543f4
feat : add product comment service functions
ajantang Nov 9, 2024
1baad18
feat : add product comment controller functions
ajantang Nov 9, 2024
8ae0d42
feat : add product comment API logic
ajantang Nov 9, 2024
06c66ab
feat : add image upload API
ajantang Nov 9, 2024
d7a4ada
feat : change required property of User at ProductComment
ajantang Nov 9, 2024
1bea489
style : delete unused code
ajantang Nov 9, 2024
f946245
feat : change temp error message
ajantang Nov 9, 2024
e9aab34
fix : delete js file imported & set generic for findUnique repo select
ajantang Nov 11, 2024
00abd9d
chore : add scripts for release
ajantang Nov 11, 2024
88fcbe9
feat : change path of comment API
ajantang Nov 11, 2024
1cb85b9
feat : change get product comment list path & body
ajantang Nov 11, 2024
5695c12
feat : change get post comment list path & body
ajantang Nov 11, 2024
0f32adf
feat : add validate postCommentId, postCommentId
ajantang Nov 11, 2024
a407dfe
feat : add cors setting
ajantang Nov 11, 2024
7208598
feat : change DB url variable name
ajantang Nov 11, 2024
9b3b997
feat : add option for real time reflection
ajantang Nov 12, 2024
7093d38
feat : change form of post detail mapper
ajantang Nov 12, 2024
5ab9d44
feat : change form of ptoduct detail mapper
ajantang Nov 12, 2024
1388e31
style : declare types of constants
ajantang Nov 14, 2024
dcda9b3
feat : add password validate pattern
ajantang Nov 14, 2024
ef86e52
refactor : change orderBy type & add sort option
ajantang Nov 14, 2024
8e2129f
fix : set verify function param
ajantang Nov 15, 2024
c5dd2dd
feat : change error message
ajantang Nov 15, 2024
4f9b22b
feat : change error message
ajantang Nov 15, 2024
9c37ee5
feat : add user repo function
ajantang Nov 15, 2024
b3776c5
feat : set cors origin setting
ajantang Nov 15, 2024
f4e89d5
feat : change cors origin path
ajantang Nov 15, 2024
955cd61
feat : add missing api
ajantang Nov 17, 2024
e770922
fix : change route of product commnet list
ajantang Nov 17, 2024
d465147
feat : add missing api
ajantang Nov 17, 2024
6f7d0fa
fix : incorrect property name
ajantang Nov 17, 2024
57fb56b
fix : incorrect property name
ajantang Nov 17, 2024
7a89db0
style : delete log
ajantang Nov 17, 2024
5e0cb01
feat : add auth controller test code(jest)
ajantang Nov 20, 2024
27a9ce7
feat : add product controller test code(jest)
ajantang Nov 20, 2024
ae12872
feat : add product comment controller test code(jest)
ajantang Nov 20, 2024
2a86b03
feat : add user repository test code(jest)
ajantang Nov 20, 2024
50a98f9
feat : add product tag repository test code(jest)
ajantang Nov 20, 2024
1293cb4
feat : add product image repository test code(jest)
ajantang Nov 20, 2024
410c082
feat : add product repository test code(jest)
ajantang Nov 21, 2024
73fb126
feat : add user & auth service test code(jest)
ajantang Nov 21, 2024
8593981
feat : add product service test code(jest)
ajantang Nov 21, 2024
9d92d9c
feat : add deploy script
ajantang Nov 22, 2024
29419c7
feat : change to use .env file instead of .env.production
ajantang Nov 23, 2024
f79bf7e
feat : change to use .env.production file instead of .env
ajantang Nov 23, 2024
b70c77e
feat : add env variable to use AWS service
ajantang Dec 1, 2024
4759fc9
feat : add jest config code to check coverage
ajantang Dec 1, 2024
8e008ec
feat : add AWS image upload code
ajantang Dec 1, 2024
f1f8f0e
style : replace AWS code on service layer
ajantang Dec 1, 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
14 changes: 7 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@ sketch

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

### Environment variable ###
.env
.env.local
.env.production
.env*
.env.*

### http test ###
/http

### js files ###
dist/
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# express-ts-server-template
221 changes: 0 additions & 221 deletions data/mock.js

This file was deleted.

54 changes: 0 additions & 54 deletions data/seed.js

This file was deleted.

17 changes: 17 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
set -xe

APP_HOST="[email protected]"
APP_PATH="/home/ec2-user/project"
APP_ENTRY="dist/app.js"
APP_NAME="app"
PEM_PATH="C:/Users/SnowRang/Downloads/sprintWebServer.pem"

npm install
npx tsc

ssh -i $PEM_PATH $APP_HOST "mkdir -p $APP_PATH && echo 'Directory created successfully' || echo 'Failed to create directory'"

#rsync -e "ssh -i $PEM_PATH" --rsync-path="rsync" -avr --exclude=node_modules --exclude=.git ./dist ./package.json ./package-lock.json $APP_HOST:$APP_PATH
scp -i $PEM_PATH -r ./dist ./package.json ./package-lock.json ./prisma/schema.prisma .env.production $APP_HOST:$APP_PATH

ssh -i $PEM_PATH $APP_HOST "cd $APP_PATH && npm install --omit=dev && npx prisma generate && pm2 start $APP_ENTRY --name $APP_NAME || pm2 restart $APP_NAME"
Loading