feat: init-express-backend #6

Merged
Clement merged 38 commits from feat--init-express-backend into master 2024-05-06 19:20:30 +00:00
3 changed files with 7883 additions and 4 deletions
Showing only changes of commit 04dfb78d57 - Show all commits

View File

@ -1,6 +1,9 @@
import express from "express"; import express from "express";
import * as dotenv from "dotenv";
const port = 3000; //TODO: mettre port en .ENV dotenv.config({path: '../../.env'})
const port = parseInt(process.env.BAR_PORT || '3000')
const app = express(); const app = express();

File diff suppressed because it is too large Load Diff

View File

@ -8,11 +8,17 @@
"dependencies": { "dependencies": {
"@types/express": "^4.17.21", "@types/express": "^4.17.21",
"@types/node": "^20.12.7", "@types/node": "^20.12.7",
"dotenv": "^16.4.5",
"express": "^4.19.2", "express": "^4.19.2",
"rimraf": "^5.0.5", "rimraf": "^5.0.5",
"typescript": "^5.4.5" "typescript": "^5.4.5"
}, },
"devDependencies": { "devDependencies": {
"nodemon": "^3.1.0" "babel-cli": "^6.26.0",
"babel-preset-env": "^1.7.0",
"jest": "^29.7.0",
"nodemon": "^3.1.0",
"superagent": "^9.0.2",
"supertest": "^7.0.0"
} }
} }