Add tailwindcss, add first page

Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
This commit is contained in:
Louis Hollingworth 2022-11-13 20:53:51 +00:00
parent db9fa44439
commit 2e98cb39f4
Signed by: lucxjo
GPG key ID: B140F8923EF88DA9
8 changed files with 1265 additions and 8 deletions

9
server/index.ts Normal file
View file

@ -0,0 +1,9 @@
import mongoose from 'mongoose';
const runtimeConfig = useRuntimeConfig();
import {Nitro} from 'nitropack';
export default async (_nitroApp: Nitro) => {
mongoose.connect(runtimeConfig.mongoUri)
.then(() => console.log('connected to db'))
.catch(err => console.log('error connecting to db', err));
};