felixbade / lyli Goto Github PK
View Code? Open in Web Editor NEWURL shortener
Home Page: https://lyli.fi/
License: Artistic License 2.0
URL shortener
Home Page: https://lyli.fi/
License: Artistic License 2.0
At the moment Lyli always returns 200 to shortening form submissions. However, HTTP error codes would be more informative.
409 Conflict should be used when the submitted suffix is already in use.
This response is sent when a request conflicts with the current state of the server.
400 Bad Request should be used when the suffix isn’t allowed, or the long URL is malformed.
The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
The client should not repeat this request without modification.
Even simple automated tests would help catch major problems possibly happening when code or dependencies are updated. I suggest at least the following tests:
Test that the front page opens normally with a correct response code.
Shorten a link, test that it works twice, delete the link, test that the link does not work.
Test that a non-existing link opens the correct page for non-existing links.
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.