Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tonyh0401/nodejs-url-shortener-api

A Simple Url Shortener API using NodeJS, ExpressJS and SQLite3
https://github.com/tonyh0401/nodejs-url-shortener-api

api-rest expressjs nodejs sqlite3

Last synced: 10 days ago
JSON representation

A Simple Url Shortener API using NodeJS, ExpressJS and SQLite3

Awesome Lists containing this project

README

        

# Simple URL Shortener API

## Description

Simple URL Shortener API shortens URL links into smaller links for easy access. The shortened links **expired after 30 minutes**. The results after each processes are returned in JSON format, so I highly advice using tools like Postman to perform requests.

## Tech

- NodeJS
- ExpressJS
- SQLite

## Installation

This project requires [Node.js](https://nodejs.org/) v10+ to run. Please install the dependencies brefore starting the server.

```sh
cd nodejs-url-shortener-api
npm i
npm start
```

## Environment Variables:

```sh
BE_PORT=""
```

## Command

Create Shorten URL:

```sh
POST /api/v1/urls
{
"originalUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}
```

Access Shorten URL:

```sh
GET /api/v1/urls/access/<>
```

## Website

Simple URL Shortener API is deployed on [Render] and you can access the API by using this link "nodejs-url-shortener-api.onrender.com".

**Status**: offline

## License

MIT

**Free Software, Hell Yeah!**

[//]: # (These are reference links used in the body of this note and get stripped out when the markdown processor does its job. There is no need to format nicely because it shouldn't be seen. Thanks SO - http://stackoverflow.com/questions/4823468/store-comments-in-markdown-syntax)

[Render]:
[git-repo-url]:
[john gruber]:
[df1]:
[markdown-it]:
[Ace Editor]:
[node.js]:
[Twitter Bootstrap]:
[jQuery]:
[@tjholowaychuk]:
[express]:
[AngularJS]:
[Gulp]: