Server: switch to Fastify

Switch config to TOML over JSON (it's just nicer TBH)
This commit is contained in:
MotorTruck1221 2024-10-13 04:33:25 -06:00
parent deda273eda
commit 620ad25c61
No known key found for this signature in database
GPG key ID: 08F417E2B8B61EA4
20 changed files with 1373 additions and 683 deletions

23
server/dbSetup.ts Normal file
View file

@ -0,0 +1,23 @@
import chalk from "chalk";
import { CatalogModel } from "./server.js";
import { ModelCtor } from "sequelize";
function setupDB(db: ModelCtor<CatalogModel>) {
//We have some packages that need to be installed if they aren't.
//TODO: set this up
console.log(chalk.hex('#7967dd')('Performing DB setup...'));
//db.create({
// package_name: 'com.nebula.cybermonay',
// title: 'Cyber Monay',
// image: 'cyber_monay.jpg',
// author: 'Nebula Services',
// version: '1.0.0',
// description: 'A parody of the famous "Cyber Monay" hack!',
// tags: ["Hacking", "Animated", "Funny"],
// payload: "com.nebula.cybermonay.css",
// background_video: "cyber_monay_test.mp4",
// type: 'theme'
//});
}
export { setupDB }