mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-13 03:50:02 -04:00
Server: switch to Fastify
Switch config to TOML over JSON (it's just nicer TBH)
This commit is contained in:
parent
deda273eda
commit
620ad25c61
20 changed files with 1373 additions and 683 deletions
23
server/dbSetup.ts
Normal file
23
server/dbSetup.ts
Normal 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 }
|
Loading…
Add table
Add a link
Reference in a new issue