Steps to run this project:
- Run
npm i
command - Setup database settings inside
ormconfig.json
file - Create a .env file.
- Inside the .env file, create a variable ACCESS_TOKEN_SECRET;
- Give it a random value. For good security, use crypto.randomBytes(16).toString('hex') to get a string to use as a secret.
- Run
npm run devStart
to start the server.ts - Run
npm run devStartAuth
to start the authServer.ts
- NodeJs: "v12.18.0"
- Crypto: "^1.0.1",
- Dotenv: "^8.2.0",
- Express: "^4.17.1",
- Jsonwebtoken: "^8.5.1",
- Multer: "^1.4.2",
- Mysql: "^2.18.1",
- Nodemon: "^2.0.6",
- Typeorm: "0.2.28"
https://app.swaggerhub.com/apis-docs/Szpoti/Szpoti_MyItSolver_homework/1.0.0