2023-06-20 20:05:15 +00:00
|
|
|
{
|
|
|
|
"name": "social-media-app",
|
|
|
|
"version": "0.0.1",
|
|
|
|
"description": "A social media",
|
|
|
|
"scripts": {
|
2023-06-24 20:38:34 +00:00
|
|
|
"build": "swc src -d dist",
|
2023-07-31 23:18:07 +00:00
|
|
|
"dev:start": "ts-node-dev -r tsconfig-paths/register --transpile-only --respawn src/server.ts",
|
2023-08-08 22:52:28 +00:00
|
|
|
"docker": "docker compose --env-file docker.env up -d",
|
2023-06-20 20:05:15 +00:00
|
|
|
"docker:build": "docker build -t api . && docker compose up -d",
|
|
|
|
"docker:db": "docker compose -f docker-compose.db.yml up -d",
|
|
|
|
"docker:seed": "docker exec -it api npm run prisma:seed",
|
2023-07-31 23:18:07 +00:00
|
|
|
"lint": "eslint --ignore-path .eslintignore --ext .js,.ts .",
|
2023-06-20 20:05:15 +00:00
|
|
|
"migrate:dev": "prisma migrate dev",
|
|
|
|
"migrate:dev:create": "prisma migrate dev --create-only",
|
|
|
|
"migrate:reset": "prisma migrate reset",
|
2023-09-30 17:31:02 +00:00
|
|
|
"prepare": "husky install",
|
2023-06-20 20:05:15 +00:00
|
|
|
"prisma:generate": "npx prisma generate",
|
|
|
|
"prisma:seed": "prisma db seed",
|
|
|
|
"prisma:studio": "npx prisma studio",
|
2023-09-30 20:15:19 +00:00
|
|
|
"prod:start": "npx prisma migrate deploy && pm2-runtime start dist/server.js",
|
|
|
|
"test": "vitest run"
|
2023-06-20 20:05:15 +00:00
|
|
|
},
|
2023-06-23 18:15:11 +00:00
|
|
|
"ts-standard": {
|
|
|
|
"project": "tsconfig.json",
|
2023-06-20 20:05:15 +00:00
|
|
|
"ignore": [
|
2023-06-23 18:15:11 +00:00
|
|
|
"prisma/*",
|
|
|
|
"dist"
|
2023-06-20 20:05:15 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"author": "Cookie",
|
|
|
|
"license": "MIT",
|
|
|
|
"devDependencies": {
|
2023-09-30 17:31:02 +00:00
|
|
|
"@commitlint/cli": "^17.7.2",
|
|
|
|
"@commitlint/config-conventional": "^17.7.0",
|
2023-10-16 00:56:30 +00:00
|
|
|
"@faker-js/faker": "^8.2.0",
|
2023-06-24 20:38:34 +00:00
|
|
|
"@swc/cli": "^0.1.62",
|
2023-10-09 00:33:03 +00:00
|
|
|
"@swc/core": "^1.3.92",
|
2023-06-23 18:15:11 +00:00
|
|
|
"@types/bcrypt": "^5.0.0",
|
|
|
|
"@types/compression": "^1.7.2",
|
2023-08-05 19:51:43 +00:00
|
|
|
"@types/cors": "^2.8.13",
|
2023-06-23 18:15:11 +00:00
|
|
|
"@types/dotenv": "^8.2.0",
|
|
|
|
"@types/express": "^4.17.17",
|
|
|
|
"@types/jsonwebtoken": "^9.0.2",
|
2023-08-05 19:51:43 +00:00
|
|
|
"@types/morgan": "^1.9.4",
|
2023-07-17 20:47:05 +00:00
|
|
|
"@types/multer-s3": "^3.0.0",
|
2023-06-23 18:15:11 +00:00
|
|
|
"@types/node": "^20.3.1",
|
|
|
|
"@types/supertest": "^2.0.12",
|
2023-10-01 17:47:41 +00:00
|
|
|
"@types/swagger-ui-express": "^4.1.4",
|
2023-06-23 18:15:11 +00:00
|
|
|
"@types/validator": "^13.7.17",
|
2023-09-30 20:52:53 +00:00
|
|
|
"@typescript-eslint/eslint-plugin": "^6.7.3",
|
2023-10-16 00:57:12 +00:00
|
|
|
"@typescript-eslint/parser": "^6.7.5",
|
2023-07-31 23:18:07 +00:00
|
|
|
"eslint": "^8.46.0",
|
2023-09-30 20:52:53 +00:00
|
|
|
"eslint-config-prettier": "^9.0.0",
|
2023-10-09 00:35:00 +00:00
|
|
|
"eslint-config-standard-with-typescript": "^39.1.1",
|
2023-07-31 23:18:07 +00:00
|
|
|
"eslint-plugin-import": "^2.28.0",
|
|
|
|
"eslint-plugin-n": "^16.0.1",
|
2023-08-22 20:47:32 +00:00
|
|
|
"eslint-plugin-prettier": "^5.0.0",
|
2023-07-31 23:18:07 +00:00
|
|
|
"eslint-plugin-promise": "^6.1.1",
|
2023-09-30 17:31:02 +00:00
|
|
|
"husky": "^8.0.3",
|
2023-07-17 20:47:05 +00:00
|
|
|
"nodemon": "^3.0.1",
|
2023-09-30 20:52:53 +00:00
|
|
|
"pm2": "^5.3.0",
|
2023-07-31 23:18:07 +00:00
|
|
|
"prettier": "^3.0.0",
|
2023-07-17 20:47:05 +00:00
|
|
|
"prisma": "^5.0.0",
|
2023-06-23 18:15:11 +00:00
|
|
|
"supertest": "^6.3.3",
|
|
|
|
"ts-node-dev": "^2.0.0",
|
2023-07-31 23:18:07 +00:00
|
|
|
"tsconfig-paths": "^4.2.0",
|
2023-09-30 20:15:19 +00:00
|
|
|
"typescript": "^5.1.6",
|
|
|
|
"vite-tsconfig-paths": "^4.2.1",
|
|
|
|
"vitest": "^0.34.6"
|
2023-06-20 20:05:15 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2023-10-09 00:34:39 +00:00
|
|
|
"@prisma/client": "^5.4.1",
|
2023-10-13 18:43:28 +00:00
|
|
|
"aws-sdk": "^2.1473.0",
|
2023-06-20 20:05:15 +00:00
|
|
|
"bcrypt": "^5.1.0",
|
|
|
|
"compression": "^1.7.4",
|
2023-08-05 19:51:43 +00:00
|
|
|
"cors": "^2.8.5",
|
2023-06-20 20:05:15 +00:00
|
|
|
"dotenv": "^16.3.1",
|
|
|
|
"express": "^4.18.2",
|
2023-10-16 00:55:58 +00:00
|
|
|
"express-rate-limit": "^7.1.1",
|
2023-07-12 18:05:17 +00:00
|
|
|
"ioredis": "^5.3.2",
|
2023-06-20 20:05:15 +00:00
|
|
|
"jsonwebtoken": "^9.0.0",
|
2023-08-05 19:51:43 +00:00
|
|
|
"morgan": "^1.10.0",
|
2023-07-17 20:47:05 +00:00
|
|
|
"multer": "^1.4.5-lts.1",
|
|
|
|
"multer-s3": "^3.0.1",
|
2023-09-30 20:52:53 +00:00
|
|
|
"rate-limit-redis": "^4.0.0",
|
2023-08-08 22:52:28 +00:00
|
|
|
"redis": "^4.6.7",
|
2023-07-17 20:47:05 +00:00
|
|
|
"sharp": "^0.32.3",
|
2023-08-05 19:51:43 +00:00
|
|
|
"socket.io": "^4.7.2",
|
2023-10-01 17:47:41 +00:00
|
|
|
"swagger-ui-express": "^5.0.0",
|
2023-08-05 19:51:43 +00:00
|
|
|
"validator": "^13.9.0",
|
2023-10-09 00:33:49 +00:00
|
|
|
"winston": "^3.11.0",
|
2023-10-01 17:47:41 +00:00
|
|
|
"yaml": "^2.3.2"
|
2023-06-20 20:05:15 +00:00
|
|
|
}
|
2023-08-22 19:57:34 +00:00
|
|
|
}
|