authentication_role-based_authorization_architecture
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| authentication_role-based_authorization_architecture [2026/01/08 06:10] – [Install Swagger packages] pradnya | authentication_role-based_authorization_architecture [2026/01/09 08:30] (current) – [Install Swagger packages] pradnya | ||
|---|---|---|---|
| Line 556: | Line 556: | ||
| ==== Initialize Node + TypeScript ==== | ==== Initialize Node + TypeScript ==== | ||
| - | < | + | < |
| + | npm init -y | ||
| </ | </ | ||
| Install core dependencies: | Install core dependencies: | ||
| - | < | + | < |
| + | npm install express jsonwebtoken bcryptjs pino pino-pretty dotenv mysql2 | ||
| </ | </ | ||
| Install dev dependencies: | Install dev dependencies: | ||
| - | < | + | < |
| + | npm install -D typescript ts-node-dev @types/node @types/ | ||
| </ | </ | ||
| + | |||
| + | Install dependencies for Pino logger to setup directory / folder structure | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | |||
| ==== Install Swagger packages ==== | ==== Install Swagger packages ==== | ||
| Line 576: | Line 588: | ||
| npm install swagger-jsdoc swagger-ui-express | npm install swagger-jsdoc swagger-ui-express | ||
| npm install -D @types/ | npm install -D @types/ | ||
| + | |||
| + | </ | ||
| + | |||
| + | < | ||
| + | npm install dotenv | ||
| + | |||
| + | npm install bcryptjs | ||
| + | |||
| + | npm install --save-dev @types/ | ||
| + | |||
| + | </ | ||
| + | |||
| + | install json web token | ||
| + | |||
| + | < | ||
| + | npm install jsonwebtoken | ||
| + | npm install --save-dev @types/ | ||
| </ | </ | ||
authentication_role-based_authorization_architecture.1767852605.txt.gz · Last modified: by pradnya
