diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 index ceaea36..6d858fe --- a/.gitignore +++ b/.gitignore @@ -1,132 +1,25 @@ -# ---> Node -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* -.pnpm-debug.log* +node_modules -# Diagnostic reports (https://nodejs.org/api/report.html) -report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json +# Output +.output +.vercel +.netlify +.wrangler +/.svelte-kit +/build -# Runtime data -pids -*.pid -*.seed -*.pid.lock +# OS +.DS_Store +Thumbs.db -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage -*.lcov - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# Snowpack dependency directory (https://snowpack.dev/) -web_modules/ - -# TypeScript cache -*.tsbuildinfo - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional stylelint cache -.stylelintcache - -# Microbundle cache -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variable files +# Env .env -.env.development.local -.env.test.local -.env.production.local -.env.local +.env.* +!.env.example +!.env.test -# parcel-bundler cache (https://parceljs.org/) -.cache -.parcel-cache - -# Next.js build output -.next -out - -# Nuxt.js build / generate output -.nuxt -dist - -# Gatsby files -.cache/ -# Comment in the public line in if your project uses Gatsby and not Next.js -# https://nextjs.org/blog/next-9-1#public-directory-support -# public - -# vuepress build output -.vuepress/dist - -# vuepress v2.x temp and cache directory -.temp -.cache - -# Docusaurus cache and generated files -.docusaurus - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -# DynamoDB Local files -.dynamodb/ - -# TernJS port file -.tern-port - -# Stores VSCode versions used for testing VSCode extensions -.vscode-test - -# yarn v2 -.yarn/cache -.yarn/unplugged -.yarn/build-state.yml -.yarn/install-state.gz -.pnp.* +# Vite +vite.config.js.timestamp-* +vite.config.ts.timestamp-* +bun.lock diff --git a/package.json b/package.json new file mode 100755 index 0000000..b80ccf9 --- /dev/null +++ b/package.json @@ -0,0 +1,40 @@ +{ + "name": "humandex-web", + "private": true, + "version": "0.0.1", + "type": "module", + "scripts": { + "start": "bun run build && node server/server.js", + "dev": "vite dev --host", + "build": "vite build" + }, + "devDependencies": { + "@skeletonlabs/skeleton": "^3.2.2", + "@skeletonlabs/skeleton-svelte": "^1.5.3", + "@sveltejs/adapter-auto": "^4.0.0", + "@sveltejs/kit": "^2.47.3", + "@sveltejs/vite-plugin-svelte": "^5.1.1", + "@tailwindcss/forms": "^0.5.10", + "@tailwindcss/typography": "^0.5.19", + "@tailwindcss/vite": "^4.1.16", + "mdsvex": "^0.12.6", + "svelte": "^5.41.2", + "svelte-check": "^4.3.3", + "tailwindcss": "^4.1.16", + "typescript": "^5.9.3", + "vite": "^6.4.1" + }, + "dependencies": { + "@auth/sveltekit": "^1.11.0", + "@iconify/svelte": "^5.0.2", + "@sveltejs/adapter-node": "^5.4.0", + "axios": "^1.12.2", + "bufferutil": "^4.0.9", + "cors": "^2.8.5", + "discord.js": "^14.23.2", + "dotenv": "^16.6.1", + "express": "^5.1.0", + "mongoose": "^8.19.2", + "ms": "^2.1.3" + } +} diff --git a/server/server.js b/server/server.js new file mode 100755 index 0000000..bf8d692 --- /dev/null +++ b/server/server.js @@ -0,0 +1,28 @@ +// @ts-nocheck +import { handler } from '../build/handler.js'; +import dotenv from 'dotenv'; +import http from 'http'; +import express from 'express'; +import cors from 'cors'; + +dotenv.config(); + +const app = express(); +const server = http.Server(app); + +app.use(cors()); + +app.use(handler); + +server.listen(process.env.PORT, () => { + console.log(`listening on port http://localhost:${process.env.PORT}`); +}); + +process.on('unhandledRejection', (reason, promise) => { + console.log('Unhandled Rejection at:', reason.stack || reason); +}); + +process.on('uncaughtException', (error) => { + console.log('Uncaught Exception thrown'); + console.error(error); +}); \ No newline at end of file diff --git a/src/app.css b/src/app.css new file mode 100755 index 0000000..00969f1 --- /dev/null +++ b/src/app.css @@ -0,0 +1,9 @@ +@import 'tailwindcss'; +@plugin '@tailwindcss/forms'; +@plugin '@tailwindcss/typography'; + +@import '@skeletonlabs/skeleton'; +@import '@skeletonlabs/skeleton/optional/presets'; +@import '@skeletonlabs/skeleton/themes/cerberus'; + +@source '../node_modules/@skeletonlabs/skeleton-svelte/dist'; \ No newline at end of file diff --git a/src/app.d.ts b/src/app.d.ts new file mode 100755 index 0000000..da08e6d --- /dev/null +++ b/src/app.d.ts @@ -0,0 +1,13 @@ +// See https://svelte.dev/docs/kit/types#app.d.ts +// for information about these interfaces +declare global { + namespace App { + // interface Error {} + // interface Locals {} + // interface PageData {} + // interface PageState {} + // interface Platform {} + } +} + +export {}; diff --git a/src/app.html b/src/app.html new file mode 100755 index 0000000..9198cf0 --- /dev/null +++ b/src/app.html @@ -0,0 +1,12 @@ + + +
+ + + + %sveltekit.head% + + +