Giter Site home page Giter Site logo

shortify's Introduction

Deno

URL Shortener API

This is a URL shortener API built on the Deno platform using TypeScript. It's a simple tool that takes a long URL and turns it into a short, custom URL that you can use however you like. You can even connect your own custom domain to the URL shortener, which acts as a base for all the short links you create.

Technologies Used

  • Deno
  • TypeScript

How to Contribute

To contribute to this project, follow the steps below:

  1. Fork this repository.
  2. Clone the forked repository to your local machine.
  3. Install Deno on your machine.
  4. Navigate to the project directory in your terminal.
  5. Run deno run --allow-net --allow-write --allow-read app.ts to start the server.
  6. Make the changes you want and commit them.
  7. Push your changes to your forked repository.
  8. Create a pull request to the main repository.

Endpoints

The following endpoints are available in this API:

User

  • POST /users/signup: Create a user profile so that all created shortened links will be associated with your profile.
  • GET /users/me: Retrieve user profile via the provided auth token.
  • POST /users/login: Logging into user account to retrieve an authorisation token.

Short URL

  • POST /urls: Create a short URL.
  • GET /urls/:code: Retrieve a long URL associated with a given code.
  • GET /urls/stats/:code: Retrieve statistics for a given short URL code.

License

This project is licensed under the MIT License.

shortify's People

Contributors

caleberi avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.