A blog web-app with Markdown based blogs and SQLite database!
Created with svelte and TypeScript.
Everything you need to build a Svelte project, powered by create-svelte
.
# start the server and open the app in a new browser tab
npm run dev -- --open
You can preview the production build with npm run preview
.
To deploy your app, you may need to install an adapter for your target environment.
CREATE TABLE "drafts" (
"id" INTEGER NOT NULL UNIQUE,
"title" TEXT NOT NULL,
"description" TEXT NOT NULL,
"body" TEXT NOT NULL,
PRIMARY KEY("id" AUTOINCREMENT)
);
CREATE TABLE "posts" (
"id" INTEGER NOT NULL UNIQUE,
"date" TEXT NOT NULL CHECK(date LIKE '____-__-__T__:__:__.___Z'),
"title" TEXT NOT NULL,
"description" TEXT NOT NULL,
"body" TEXT NOT NULL,
"latestChangeDate" TEXT CHECK(latestChangeDate LIKE '____-__-__T__:__:__.___Z'),
PRIMARY KEY("id" AUTOINCREMENT)
);
CREATE TABLE "sessions" (
"id" TEXT NOT NULL UNIQUE,
"timestamp" TEXT NOT NULL CHECK(timestamp LIKE '____-__-__T__:__:__.___Z'),
PRIMARY KEY("id")
);
see .env.example