Skip to content

Commit

Permalink
Merge pull request #51 from readme-experts/server
Browse files Browse the repository at this point in the history
Completed NestJS backend
  • Loading branch information
akaeyuhi authored Jan 13, 2023
2 parents 4c46744 + de05dd3 commit 04b67ae
Show file tree
Hide file tree
Showing 50 changed files with 715 additions and 504 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ src/api/.env
src/api/node_modules
src/api/package.json
.env
src/database/prisma/migrations
src/server/prisma/migrations
src/server/dist
src/.env
/.idea
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ PORT = 3000 || any other port
JWT_ACCESS_SECRET = "your secret key"
```

#### To generate prisma client
```bash
npx prisma generate --schema=./src/database/prisma/schema.prisma
```

#### To start parser:
```bash
/src/parser/ node index.js
Expand Down
2 changes: 0 additions & 2 deletions example.env

This file was deleted.

8 changes: 8 additions & 0 deletions nest-cli.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://json.schemastore.org/nest-cli",
"collection": "@nestjs/schematics",
"sourceRoot": "src/server",
"compilerOptions": {
"deleteOutDir": true
}
}
33 changes: 30 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,50 @@
{
"dependencies": {
"@fastify/static": "^6.6.1",
"@nestjs/cli": "^9.1.8",
"@nestjs/common": "^9.2.1",
"@nestjs/core": "^9.2.1",
"@nestjs/jwt": "^10.0.1",
"@nestjs/passport": "^9.0.0",
"@nestjs/platform-express": "^9.2.1",
"@nestjs/platform-fastify": "^9.2.1",
"@nestjs/schematics": "^9.0.4",
"@nestjs/serve-static": "^3.0.0",
"@prisma/client": "^4.8.1",
"bcrypt": "^5.0.1",
"bcrypt": "^5.1.0",
"chalk": "^5.0.0",
"cheerio": "^1.0.0-rc.10",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"dotenv": "^10.0.0",
"eslint": "^8.6.0",
"express": "^4.17.2",
"express-validator": "^6.14.0",
"jsonwebtoken": "^9.0.0",
"mysql": "^2.18.1",
"passport": "^0.6.0",
"passport-jwt": "^4.0.1",
"passport-local": "^1.0.0",
"puppeteer": "^13.0.1",
"source-map-support": "^0.5.21",
"tsconfig-paths": "4.1.1",
"typescript": "^4.9.4",
"vue": "^2.6.14"
},
"scripts": {
"preinstall": "sudo npm i -g @nestjs/cli && npx prisma generate --schema=./src/server/prisma/schema.prisma",
"installDependecies": "npm --prefix src/client install && npm --prefix src/api install",
"start": "npm run --prefix src/client build && npm run --prefix src/api start"
"start": "npm run --prefix src/client build && npm run --prefix src/api start",
"start:dev": "nest start --watch"
},
"devDependencies": {
"@types/bcrypt": "^5.0.0",
"@types/passport-jwt": "^3.0.8",
"@types/passport-local": "^1.0.35",
"@typescript-eslint/eslint-plugin": "^5.48.1",
"@typescript-eslint/parser": "^5.48.1",
"eslint": "^8.31.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-prettier": "^4.2.1",
"prisma": "^4.8.1"
}
}
20 changes: 0 additions & 20 deletions src/api/authMiddleware.js

This file was deleted.

102 changes: 0 additions & 102 deletions src/api/controllers/Controller.js

This file was deleted.

60 changes: 0 additions & 60 deletions src/api/controllers/authController.js

This file was deleted.

25 changes: 0 additions & 25 deletions src/api/index.js

This file was deleted.

19 changes: 0 additions & 19 deletions src/api/routes/authRouter.js

This file was deleted.

16 changes: 0 additions & 16 deletions src/api/routes/router.js

This file was deleted.

45 changes: 0 additions & 45 deletions src/api/service/parser-service.js

This file was deleted.

Loading

0 comments on commit 04b67ae

Please sign in to comment.