Initial commit

This commit is contained in:
2023-11-03 21:12:55 +01:00
parent a4afe6cc85
commit 57362e7520
39 changed files with 3505 additions and 1 deletions
+29 -1
View File
@@ -1,2 +1,30 @@
# url-shortener-public
# URL Shortener
This is a small project i worked on out of boredom.
Its not meant to be perfect, just an idea i had and wanted to work on to kill some time.
Its an url shortener that is meant to allow people to easily create shorted urls, even automate this task if need be.
## Setup
Run `git clone https://git.dommymommy.xyz/emily/url-shortener.git`
Next run `cd url-shortener` and then run `npm i`
Run the sql file on your database server and add the credentials to `./config/main.json`
Now you can run `node main` or `npm start` to start up the service
## Usage
## API
### POST
>/api/v1/createKey
Get Info about a shortcode
>
### GET
>/api/v1/info/\<code>
Get Info about a shortcode
### DELETE