Skip to content

stephenmelnicki/denopaste

Repository files navigation

Deno Paste

The Deno logo

Deno Paste is a simple paste service built with Deno 🦕 and Fresh 🍋

Some stand-out features:

  • Automatic paste expiration (one hour).
  • Copy paste to the clipboard.
  • Save paste to file.
  • Link directly to pastes' raw contents.

Getting Started

Install the latest Deno CLI version.

Then start the development server using the deno task command:

deno task dev

Now open http://localhost:8000 in your browser to view Deno Paste. Any changes you make to the source code will be reflected in your browser.

Deno Paste is deployed via Deno Deploy. To deploy your own version:

  1. Fork this repository
  2. Create a Deno Deploy project
  3. Link the Deno Deploy project to the main.ts file
  4. The project will be deployed to a public $project.deno.dev subdomain.

For a more in-depth getting started guide, visit the Getting Started page in the Fresh docs.

Testing

To run the unit tests:

deno task test

To view a test coverage report:

deno task test -- --coverage
deno coverage

To run the integration tests, start the Deno Paste server if you haven't already:

deno task dev

Or

deno task build
deno task preview

Then, in another tab, run the integration tests:

deno task e2e