Documentation to Create Your Own Plugin: https://www.fleetingnotes.app/docs/plugins/create-your-own-plugin
- Install deno
- Add
.env
file - Run script to generate manifest
deno run --allow-read --allow-write routes-manifest-generate.ts
- Start webserver
deno run --allow-all webserver.ts
To write and run tests for the project, follow these steps:
- Create a folder named
__test__
in the project's root directory. - Inside the
__test__
folder, create a new test file with the .test.ts extension. - Write test cases using a testing framework like Deno's built-in testing framework
Example:
import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
import { describe, it } from "https://deno.land/[email protected]/testing/bdd.ts";
description("Math operations", () => {
it("should add two numbers correctly", () => {
const result = 1 + 2;
assertEquals(result, 3);
});
});
deno test --allow-all