feat: some shit

This commit is contained in:
2024-02-28 21:21:42 +01:00
commit 27b6514167
39 changed files with 9501 additions and 0 deletions

15
backend/.editorconfig Normal file
View File

@@ -0,0 +1,15 @@
root = true
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
[*.js]
indent_style = space
indent_size = 2
[{package.json,*.yml,*.cjson}]
indent_style = space
indent_size = 2

3
backend/.eslintignore Normal file
View File

@@ -0,0 +1,3 @@
dist
.output
node-modules

5
backend/.eslintrc Normal file
View File

@@ -0,0 +1,5 @@
{
"extends": [
"@nuxtjs/eslint-config-typescript"
]
}

7
backend/.gitignore vendored Normal file
View File

@@ -0,0 +1,7 @@
node_modules
*.log*
.nitro
.cache
.output
.env
dist

2
backend/.npmrc Normal file
View File

@@ -0,0 +1,2 @@
shamefully-hoist=true
strict-peer-dependencies=false

42
backend/README.md Normal file
View File

@@ -0,0 +1,42 @@
# Nitro Minimal Starter
Look at the [Nitro documentation](https://nitro.unjs.io/) to learn more.
## Setup
Make sure to install the dependencies:
```bash
# npm
npm install
# yarn
yarn install
# pnpm
pnpm install
```
## Development Server
Start the development server on <http://localhost:3000>
```bash
npm run dev
```
## Production
Build the application for production:
```bash
npm run build
```
Locally preview production build:
```bash
npm run preview
```
Check out the [deployment documentation](https://nitro.unjs.io/deploy) for more information.

2
backend/nitro.config.ts Normal file
View File

@@ -0,0 +1,2 @@
//https://nitro.unjs.io/config
export default defineNitroConfig({});

12
backend/package.json Normal file
View File

@@ -0,0 +1,12 @@
{
"private": true,
"scripts": {
"prepare": "nitropack prepare",
"dev": "nitropack dev",
"build": "nitropack build",
"preview": "node .output/server/index.mjs"
},
"dependencies": {
"nitropack": "latest"
}
}

3
backend/routes/index.ts Normal file
View File

@@ -0,0 +1,3 @@
export default eventHandler(() => {
return { nitro: 'Is Awesome!' }
})

3
backend/tsconfig.json Normal file
View File

@@ -0,0 +1,3 @@
{
"extends": "./.nitro/types/tsconfig.json"
}