intial commit
This commit is contained in:
74
.vscode/settings.json
vendored
Normal file
74
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"editor.defaultFormatter": "biomejs.biome",
|
||||
"workbench.colorTheme": "Default Dark+",
|
||||
"terminal.integrated.env.windows": {},
|
||||
"editor.formatOnSave": true,
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.biome": "explicit",
|
||||
"source.organizeImports.biome": "explicit"
|
||||
},
|
||||
"[javascript]": {
|
||||
"editor.formatOnSave": true
|
||||
},
|
||||
"[javascriptreact]": {
|
||||
"editor.formatOnSave": true
|
||||
},
|
||||
"[typescript]": {
|
||||
"editor.formatOnSave": true
|
||||
},
|
||||
"[typescriptreact]": {
|
||||
"editor.formatOnSave": true
|
||||
},
|
||||
"[json]": {
|
||||
"editor.formatOnSave": true
|
||||
},
|
||||
"[graphql]": {
|
||||
"editor.formatOnSave": true
|
||||
},
|
||||
"[handlebars]": {
|
||||
"editor.formatOnSave": true
|
||||
},
|
||||
"[go]": {
|
||||
"editor.formatOnSave": true,
|
||||
"editor.defaultFormatter": "golang.go"
|
||||
},
|
||||
"[powershell]": {
|
||||
"editor.formatOnSave": true,
|
||||
"editor.defaultFormatter": "ms-vscode.powershell" // requires PowerShell extension
|
||||
},
|
||||
"[bat]": {
|
||||
"editor.formatOnSave": true,
|
||||
"editor.defaultFormatter": "foxundermoon.shell-format" // supports .sh, .bat, .cmd
|
||||
},
|
||||
"[cmd]": {
|
||||
"editor.formatOnSave": true,
|
||||
"editor.defaultFormatter": "foxundermoon.shell-format"
|
||||
},
|
||||
|
||||
// Optional: Configure goimports instead of gofmt
|
||||
"go.formatTool": "goimports",
|
||||
"cSpell.words": [
|
||||
"acitve",
|
||||
"alpla",
|
||||
"alplamart",
|
||||
"alplaprod",
|
||||
"intiallally",
|
||||
"ppoo",
|
||||
"prodlabels"
|
||||
],
|
||||
"gitea.token": "8456def90e1c651a761a8711763d6ef225d6b2db",
|
||||
"gitea.instanceURL": "https://git.tuffraid.net",
|
||||
"gitea.owner": "cowch",
|
||||
"gitea.repo": "lst",
|
||||
|
||||
// tanstask stuff
|
||||
"files.watcherExclude": {
|
||||
"**/routeTree.gen.ts": true
|
||||
},
|
||||
"search.exclude": {
|
||||
"**/routeTree.gen.ts": true
|
||||
},
|
||||
"files.readonlyInclude": {
|
||||
"**/routeTree.gen.ts": true
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
# lst_v3
|
||||
|
||||
The tool that supports us in our everyday alplaprod
|
||||
The tool that supports us in our everyday alplaprod adventures
|
||||
10
backend/app.ts
Normal file
10
backend/app.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import express from "express";
|
||||
import { setupRoutes } from "./src/routes/routeHandler.js";
|
||||
|
||||
const app = express();
|
||||
|
||||
setupRoutes(app);
|
||||
|
||||
app.listen(3000, () => {
|
||||
console.log("Listening on port 3000");
|
||||
});
|
||||
10
backend/src/routes/routeHandler.ts
Normal file
10
backend/src/routes/routeHandler.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { Express, Response } from "express";
|
||||
|
||||
export const setupRoutes = (app: Express) => {
|
||||
app.get("/", (_, res: Response) => {
|
||||
res.status(200).json({
|
||||
success: true,
|
||||
message: "This is just an example of this working",
|
||||
});
|
||||
});
|
||||
};
|
||||
12
esbuild.config.mjs
Normal file
12
esbuild.config.mjs
Normal file
@@ -0,0 +1,12 @@
|
||||
import { build } from "esbuild";
|
||||
|
||||
await build({
|
||||
entryPoints: ["backend/app.ts"],
|
||||
outfile: "dist/app.js",
|
||||
bundle: true,
|
||||
platform: "node",
|
||||
target: ["node24"],
|
||||
minify: true,
|
||||
legalComments: "none",
|
||||
format: "esm",
|
||||
});
|
||||
1576
package-lock.json
generated
Normal file
1576
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
28
package.json
Normal file
28
package.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"name": "lst_v3",
|
||||
"version": "1.0.0",
|
||||
"description": "The tool that supports us in our everyday alplaprod",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"dev:app": "cd backend && node --watch app.ts",
|
||||
"build": "esbuild backend/app.ts --bundle --platform=node --minify --outfile=dist/index.cjs --format=esm --external:node:*",
|
||||
"lint": "tsc"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://git.tuffraid.net/cowch/lst_v3.git"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"type": "module",
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "2.3.8",
|
||||
"@types/express": "^5.0.6",
|
||||
"esbuild": "0.27.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"express": "^5.2.1"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user