restart from 0
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -51,3 +51,5 @@ docker-compose.override.yml
|
||||
coverage/
|
||||
.tmp/
|
||||
.cache/
|
||||
|
||||
/src/generated/prisma
|
||||
|
||||
2725
package-lock.json
generated
2725
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
25
package.json
25
package.json
@@ -1,32 +1,15 @@
|
||||
{
|
||||
"name": "bo_liste",
|
||||
"version": "1.0.0",
|
||||
"description": "Back Office de l'application des listes",
|
||||
"description": "BO pour la liste application",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"dev": "ts-node-dev --respawn --transpile-only src/core/server.ts",
|
||||
"build": "tsc",
|
||||
"start": "node dist/core/server.js",
|
||||
"prisma:generate": "prisma generate",
|
||||
"prisma:migrate": "prisma migrate dev"
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git@gitea.raffiskender.com:raffi/bo_listes.git"
|
||||
"url": "bo_liste"
|
||||
},
|
||||
"author": "Raffi",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@fastify/jwt": "^10.0.0",
|
||||
"@prisma/client": "^7.5.0",
|
||||
"argon2": "^0.44.0",
|
||||
"fastify": "^5.8.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^25.5.0",
|
||||
"prisma": "^7.5.0",
|
||||
"ts-node-dev": "^2.0.0",
|
||||
"typescript": "^6.0.2"
|
||||
}
|
||||
"license": "ISC"
|
||||
}
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
import Fastify from 'fastify'
|
||||
|
||||
export async function buildApp() {
|
||||
const app = Fastify({
|
||||
logger: true
|
||||
})
|
||||
|
||||
app.get('/', async () => {
|
||||
return { status: 'ok' }
|
||||
})
|
||||
|
||||
return app
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
import { buildApp } from './app'
|
||||
|
||||
const start = async () => {
|
||||
const app = await buildApp()
|
||||
|
||||
try {
|
||||
await app.listen({ port: 1234, host: '0.0.0.0' })
|
||||
console.log('Server running on http://localhost:1234')
|
||||
} catch (err) {
|
||||
app.log.error(err)
|
||||
process.exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
start()
|
||||
@@ -1,18 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"rootDir": "./src",
|
||||
"outDir": "./dist",
|
||||
|
||||
"module": "CommonJS",
|
||||
"target": "ES2020",
|
||||
|
||||
"types": ["node"],
|
||||
|
||||
"sourceMap": true,
|
||||
|
||||
"strict": true,
|
||||
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user