Skip to content

Commit

Permalink
routes to upload photo to an S3 or local upload the project photos
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusSanchez committed Jan 30, 2024
1 parent 0143351 commit e39610f
Show file tree
Hide file tree
Showing 15 changed files with 1,600 additions and 186 deletions.
9 changes: 8 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@ NODE_ENV=dev
PORT=3333
DATABASE_URL="postgresql://docker:docker@localhost:8080/orange-db?schema=public"
JWT_SECRET=
FRONTEND_URL="http://127.0.0.1:5173" # http://localhost:5173
FRONTEND_URL="http://127.0.0.1:5173" # http://localhost:5173

STORAGE_TYPE = "local"

AWS_S3_URL = ""
REGION = '',
ACCESS_KEY_ID ='',
BUCKET_NAME = ""
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ node_modules
coverage

prisma/vitest-environment-prisma/pnpm-lock.yaml
build
build
src/tmp/uploads/**
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,15 @@
"supertest": "^6.3.4",
"tsx": "^4.7.0",
"typescript": "^5.3.3",
"vitest": "^1.2.1"
"vitest": "^1.2.1",
"@types/pump": "^1.1.3"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.502.0",
"@fastify/cors": "^9.0.0",
"@fastify/jwt": "^8.0.0",
"@fastify/multipart": "^8.1.0",
"@fastify/static": "^6.12.0",
"@prisma/client": "5.8.1",
"@types/bcryptjs": "^2.4.6",
"@types/express": "^4.17.21",
Expand All @@ -46,8 +50,9 @@
"fastify": "^4.25.2",
"pg": "^8.11.3",
"pg-hstore": "^2.3.4",
"pump": "^3.0.0",
"tsup": "^8.0.1",
"vite-tsconfig-paths": "^4.3.1",
"zod": "^3.22.4",
"tsup": "^8.0.1"
"zod": "^3.22.4"
}
}
Loading

0 comments on commit e39610f

Please sign in to comment.