Инициализация проекта server typescript express part 1
Автор: Yes! Do IT
Загружено: 2023-07-05
Просмотров: 666
Описание:
Ссылка на git репозиторий для скачивания:
https://github.com/bumerboy86/server-...
Создание сервера express typescript на классах
npm init -y
npm install -D typescript tsc-watch ts-node nodemon
npm install -D @types/node @types/express
npm install express dotenv
npm install -D ts-node-dev
npm install cors @types/cors
npx tsc --init
npx tsc
Настройки файла tpackage.json
"dev": "ts-node-dev --respawn --trace-warnings --transpile-only src/index.ts",
Настройки файла tsconfig.json
{
"compilerOptions": {
"target": "ES2020",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"module": "NodeNext",
"moduleResolution": "NodeNext",
"outDir": "dist",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: