This is a Shorten URL REST application, which is developed by Node.js and MongoDB using the MVC pattern.
- Clone the repository
- Start the server by running
npm run dev
Note: This application can be deployed into your server, but you need shortest domain.
You can access the following endpoints on http://localhost:3000
METHOD | URL | Description |
---|---|---|
GET | /:code | Return the original url |
POST | /api/url/shorten | Create a shorten url |
Note: You need to pass the longUrl object as a request body in POST method.
Follow me on LinkedIn to get the latest update about features, code, and more. If you like this project give a star to this repo.
Thanks to all contributors and their support.
If you have an idea or you want to do something, tell me or just do it! I'm always happy to hear your feedback!
Code and documentation copyright 2020 the authors. Code released under the MIT License.