daemon1024 / paste.land Goto Github PK
View Code? Open in Web Editor NEWPaste tool made in deno
Home Page: https://paste-land.herokuapp.com/
License: MIT License
Paste tool made in deno
Home Page: https://paste-land.herokuapp.com/
License: MIT License
Currently the API returns "Hello World!" on GET /
Instead it should return the full list of how to use the API.
Line 15 in eb2ef96
The "Hello World!" string here should be replace with appropriate text.
If it is the first time that you contribute to the project, follow these steps:
Write a comment in this issue thread to let other possible contributors know that you are working on this bug. For eg : Hey all, I would like to work on this issue.
, follow Contributing to the project🔥✨ and feel free to ask anything related to this issue ✌️
Currently the API stores the paste in an pastes
variable which is resets everytime you launch the server.
We need to configure a persistent storage preferably a database.
If it is the first time that you contribute to the project, follow these steps:
Write a comment in this issue thread to let other possible contributors know that you are working on this bug. For eg : Hey all, I would like to work on this issue.
, follow Contributing to the project🔥✨ and feel free to ask anything related to this issue ✌️
Add an API Method so that one can delete the paste that was created earlier.
DELETE /:id
- Delete the paste with the given id.Add router.delete('/',deletefunction)
in mod.ts
If it is the first time that you contribute to the project, follow these steps:
Write a comment in this issue thread to let other possible contributors know that you are working on this bug. For eg : Hey all, I would like to work on this issue.
, follow Contributing to the project🔥✨ and feel free to ask anything related to this issue ✌️
A method to DELETE
a paste was implemented in #8. We just need to document it in our README like other methods.
Add issue templates and pull request templates to the repository.
If it is the first time that you contribute to the project, follow these steps:
Write a comment in this issue thread to let other possible contributors know that you are working on this bug. For eg : Hey all, I would like to work on this issue.
, follow Contributing to the project🔥✨ and feel free to ask anything related to this issue ✌️
Currently the API only accepts text/plain
as it's content type. The API needs to be able to parse other content types like application/json
and application/x-www-form-urlencoded
Some hints on how to implement this can be taken from https://github.com/oakserver/oak/blob/main/examples/routingServer.ts#L50-L67
If it is the first time that you contribute to the project, follow these steps:
Write a comment in this issue thread to let other possible contributors know that you are working on this bug. For eg : Hey all, I would like to work on this issue.
, follow Contributing to the project🔥✨ and feel free to ask anything related to this issue ✌️
We are using an integer which increments after each paste as the id for the paste. This is not the right way to generate the id.
We need it to be a randomly generated id, something like b7ckgse8c
which is entirely composed a-z,A-Z and 0-9. We can further discuss the specifics of the random id if you are interested.
Currently we need to send GET
requests through various tools to form a paste.
We need to be able to serve a simple form based html file which can communicate with the server as well.
The static file needs to be served at /web
. You can take some reference from https://github.com/oakserver/oak/blob/main/examples/staticServer.ts#L76-L82
Currently all the API methods are present in mod.ts
itself. This will hinder the readability of the code once there are more methods.
We need to create a different directory and add all the API methods in it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.