Paste tool made in deno
- Install
Deno
- Fork and Clone the repository
git clone https://github.com/<your-username>/paste.land
- Move into the project folder
cd paste.land
- Start the server
deno run --allow-net mod.ts
The output should be
Listening on http://localhost:8000/
Head over to http://localhost:8000/
on your PC or use some API tool like curl, Insomnia or Postman. We will be using curl in the following examples.
GET /
-> Returns Hello World
curl http://localhost:8000/
GET /:id
-> Retrieve the paste with the given id as plain-text.
curl http://localhost:8000/<id>
POST /
-> Send the data in plaintext along. Will respond with a link to the paste.
curl --data "My first paste" -H "Content-Type: text/plain" -X POST http://localhost:8000/
Refer CONTRIBUTING.md