Merge branch 'main' of https://git.odit.services/kauft.es/linkylinky
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
commit
9a3c55d235
59
.drone.yml
Normal file
59
.drone.yml
Normal file
@ -0,0 +1,59 @@
|
||||
---
|
||||
kind: secret
|
||||
name: docker_username
|
||||
get:
|
||||
path: odit-registry-builder
|
||||
name: username
|
||||
|
||||
---
|
||||
kind: secret
|
||||
name: docker_password
|
||||
get:
|
||||
path: odit-registry-builder
|
||||
name: password
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: kubernetes
|
||||
name: build:latest
|
||||
|
||||
steps:
|
||||
- name: docker release
|
||||
image: plugins/docker
|
||||
depends_on: [clone]
|
||||
settings:
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
repo: registry.odit.services/kauft.es/linkylinky
|
||||
tags:
|
||||
- latest
|
||||
registry: registry.odit.services
|
||||
mtu: 1000
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: kubernetes
|
||||
name: build:tags
|
||||
|
||||
steps:
|
||||
- name: build $DRONE_TAG
|
||||
image: plugins/docker
|
||||
depends_on: [clone]
|
||||
settings:
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
repo: registry.odit.services/kauft.es/linkylinky
|
||||
tags:
|
||||
- '${DRONE_TAG}'
|
||||
registry: registry.odit.services
|
||||
mtu: 1000
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
56
CHANGELOG.md
Normal file
56
CHANGELOG.md
Normal file
@ -0,0 +1,56 @@
|
||||
### Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
|
||||
|
||||
#### 0.0.2
|
||||
|
||||
- Migrated to knex [`823b211`](https://git.odit.services/kauft.es/linkylinky/commit/823b211c8c4fd4de3a6043696ca070101173aa1b)
|
||||
- Added basics for auth [`6d417fa`](https://git.odit.services/kauft.es/linkylinky/commit/6d417fac1b4d77ab5552b75483cfc787d466e699)
|
||||
- Initial [`ab17f91`](https://git.odit.services/kauft.es/linkylinky/commit/ab17f9148af6811a53bf323172d045cc71ecfb6d)
|
||||
- Added image builds by drone [`1a8410c`](https://git.odit.services/kauft.es/linkylinky/commit/1a8410c421e30001ae9623c19a8e72e0632ed920)
|
||||
- Working registration/auth [`81b314a`](https://git.odit.services/kauft.es/linkylinky/commit/81b314ac55e9ab0cd603dda48473c0fe3db6c42e)
|
||||
- Implemented short code generation via nanoid [`1550860`](https://git.odit.services/kauft.es/linkylinky/commit/15508606a41057857cce0d2ae16e389432c76960)
|
||||
- New provider: yt playlists [`7344724`](https://git.odit.services/kauft.es/linkylinky/commit/73447243a31110c8ea667bf868a816f80dd1eb25)
|
||||
- Added leveldb [`97a86db`](https://git.odit.services/kauft.es/linkylinky/commit/97a86db5e36ca5f08fe3f49a27745ca0a646f5b0)
|
||||
- Added api route for getting basic information about an url [`1ac700f`](https://git.odit.services/kauft.es/linkylinky/commit/1ac700f5847cbb75d9f8117aaa4af1efd71b00ab)
|
||||
- First routes [`e5c302a`](https://git.odit.services/kauft.es/linkylinky/commit/e5c302aec84aac8c62f7e5c9c5e0d2095788054c)
|
||||
- Added basic readme [`1c2c1db`](https://git.odit.services/kauft.es/linkylinky/commit/1c2c1dbbbb5726f65cb0d23814e5fda0fef0efda)
|
||||
- Added process for recognizing yt urls [`8eaa52d`](https://git.odit.services/kauft.es/linkylinky/commit/8eaa52d83d8deef5d0410509d1a91cf0b1b5ac77)
|
||||
- Now validating users against the db [`cd9400f`](https://git.odit.services/kauft.es/linkylinky/commit/cd9400fec32c3538062770e9dd75541729a60365)
|
||||
- Added visits api [`fd16b39`](https://git.odit.services/kauft.es/linkylinky/commit/fd16b3944313a27fa406782862f37b2165ac0ffd)
|
||||
- Added schma to validate [`cfc49f3`](https://git.odit.services/kauft.es/linkylinky/commit/cfc49f3ec4c62fd39fa9b06499a2cd52677d6764)
|
||||
- Added release-it config [`ca03286`](https://git.odit.services/kauft.es/linkylinky/commit/ca0328611b28a6bcdc06a57479da60932baf1bd8)
|
||||
- Added basic migration [`0a8a5c1`](https://git.odit.services/kauft.es/linkylinky/commit/0a8a5c1fba840f4713f28f4b81751847e0c96de9)
|
||||
- Added comments [`52cf92b`](https://git.odit.services/kauft.es/linkylinky/commit/52cf92b5e5cfe6925595d93953fac02162f9eef9)
|
||||
- Added tag builds [`960f979`](https://git.odit.services/kauft.es/linkylinky/commit/960f9795afa913cc95ab155ff0e2ef90c62595e8)
|
||||
- Added delete api route [`71fa977`](https://git.odit.services/kauft.es/linkylinky/commit/71fa977af4d5414872e585352d52eabdfe609335)
|
||||
- Basic Dockerfile [`2e7d924`](https://git.odit.services/kauft.es/linkylinky/commit/2e7d924815d4b359da2d76049f1836556e41d80c)
|
||||
- Added config object [`7cfcb54`](https://git.odit.services/kauft.es/linkylinky/commit/7cfcb54195eac7ba35b83b8679b61e36d572eb9b)
|
||||
- Switched to fastify [`b7354e5`](https://git.odit.services/kauft.es/linkylinky/commit/b7354e505b08ff2ce6627fbd152c9d9b5c854e91)
|
||||
- Added process for recognizing amazn urls [`35af600`](https://git.odit.services/kauft.es/linkylinky/commit/35af600dba6d86710f88ddcf092ddab39b1795aa)
|
||||
- Added migration for visit counter [`3eda0b0`](https://git.odit.services/kauft.es/linkylinky/commit/3eda0b0c9cb38e2c77212edc25ebc72b8d014423)
|
||||
- Updated prod db config to sqlite [`8ea9478`](https://git.odit.services/kauft.es/linkylinky/commit/8ea9478a108878d2473f8e752cee2094b50cc337)
|
||||
- Prequesits for docker [`1a04743`](https://git.odit.services/kauft.es/linkylinky/commit/1a04743db913c54b0c60138bc23149560fbb45cd)
|
||||
- Now returning visit count via api get [`d8cb023`](https://git.odit.services/kauft.es/linkylinky/commit/d8cb02376550a2752f31d577868b405ebe85cdf1)
|
||||
- Replaced nanoid with uniqid [`68b9b43`](https://git.odit.services/kauft.es/linkylinky/commit/68b9b4389139d25661a34968814ccd8f6ca14871)
|
||||
- Implemented a simple table for storing visits [`5e9dec6`](https://git.odit.services/kauft.es/linkylinky/commit/5e9dec640a7117810b812d157f11ac20d557d8a6)
|
||||
- Bsic docker-compose [`f325f6c`](https://git.odit.services/kauft.es/linkylinky/commit/f325f6c8cc30fec013b5dfd76555f0fd36a14647)
|
||||
- Now logging visits to shorturls [`c4c22a7`](https://git.odit.services/kauft.es/linkylinky/commit/c4c22a7405ec4d29cf01c5931908332a1e51d516)
|
||||
- Updated readme [`257272c`](https://git.odit.services/kauft.es/linkylinky/commit/257272c3f5e4a457bcc50803dd0fe37d127d37b1)
|
||||
- Added db to gitignore [`c6b02b7`](https://git.odit.services/kauft.es/linkylinky/commit/c6b02b7eb4de9cebcd6673f6299f5d2f679473de)
|
||||
- Added db prequesites [`226477b`](https://git.odit.services/kauft.es/linkylinky/commit/226477bb0c59987ca9dc594bc63134a454d8d366)
|
||||
- Added release script [`0034a7b`](https://git.odit.services/kauft.es/linkylinky/commit/0034a7b2680dd414310a49c75d6a4dd2cd97a981)
|
||||
- Added knex migration as package script [`174ceeb`](https://git.odit.services/kauft.es/linkylinky/commit/174ceebc061b6c82ea05249d0d38a4e75aeb20d4)
|
||||
- Shorcode is not the primary col [`b5482fe`](https://git.odit.services/kauft.es/linkylinky/commit/b5482fe3c367340bff3459a17a25ee2afc084a19)
|
||||
- Deletions now cascade [`9c23404`](https://git.odit.services/kauft.es/linkylinky/commit/9c23404210aa813050f5ede4cad42e0679fa87ec)
|
||||
- Added index to shortcode for easier queriing [`0814074`](https://git.odit.services/kauft.es/linkylinky/commit/08140742edd10a21784a222893f8e03457966bc2)
|
||||
- Added index for url target (to improve performance later on) [`6680ce7`](https://git.odit.services/kauft.es/linkylinky/commit/6680ce7e500720f0c38fe51e2c7bbc7449d3a033)
|
||||
- Changed path for posting new urls [`a6397f0`](https://git.odit.services/kauft.es/linkylinky/commit/a6397f01d124ca7d9f821f5bac6c9891fe28234d)
|
||||
- Added ODIT package namespace [`6273c71`](https://git.odit.services/kauft.es/linkylinky/commit/6273c713bdc1763284851a2436897cff8340bfb3)
|
||||
- Added default dev env [`74cf176`](https://git.odit.services/kauft.es/linkylinky/commit/74cf1768184351494e08fe5ddea473b56302eb38)
|
||||
- Added .env capeabilities [`2464573`](https://git.odit.services/kauft.es/linkylinky/commit/2464573525a20d5d584e76ad988096ef75b51095)
|
||||
- SSL Config via process env [`ae7d123`](https://git.odit.services/kauft.es/linkylinky/commit/ae7d123082dd3c0f57d2e2f1e147078a215dc220)
|
||||
- Added sqlite stuff to ignore [`9f80ad2`](https://git.odit.services/kauft.es/linkylinky/commit/9f80ad2941fc108f594fedf5324b5d885e675cc5)
|
||||
- Adjusted param naming [`bb09b73`](https://git.odit.services/kauft.es/linkylinky/commit/bb09b731aa8a4fa004c99e569266149e2ba506ca)
|
||||
- Now also recognizing cursed amazon urls (that weird query shit) [`fc84dde`](https://git.odit.services/kauft.es/linkylinky/commit/fc84dde5346d7fd94c319617950f376f7295fb21)
|
||||
- Updated dependencies to knex [`41e1028`](https://git.odit.services/kauft.es/linkylinky/commit/41e102857e60f1c167b08f6a117e5f8cf0a20813)
|
@ -1,5 +1,5 @@
|
||||
# Unnamed Urlshortener 🔗
|
||||
> This - yet to be named - project is a small url shortener, originaly developed for kauft.es
|
||||
# LinkyLinky 🔗
|
||||
> A small url shortener, originaly developed for kauft.es
|
||||
|
||||
## Dev Setup 🛠
|
||||
> Runs on port 3000
|
||||
|
@ -2,5 +2,6 @@ version: '3'
|
||||
services:
|
||||
backend:
|
||||
build: .
|
||||
#image: registry.odit.services/kauft.es/linkylinky:latest
|
||||
ports:
|
||||
- 3000:3000
|
||||
|
25
package.json
25
package.json
@ -1,13 +1,14 @@
|
||||
{
|
||||
"name": "@odit/shortener-backend",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.2",
|
||||
"main": "index.js",
|
||||
"license": "MIT",
|
||||
"private": false,
|
||||
"scripts": {
|
||||
"dev": "nodemon src/server.js",
|
||||
"start": "node src/server.js",
|
||||
"migrate": "knex migrate:latest"
|
||||
"migrate": "knex migrate:latest",
|
||||
"release": "release-it"
|
||||
},
|
||||
"dependencies": {
|
||||
"argon2": "^0.28.2",
|
||||
@ -19,6 +20,24 @@
|
||||
"uniqid": "^5.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"nodemon": "^2.0.12"
|
||||
"nodemon": "^2.0.12",
|
||||
"release-it": "^14.11.3"
|
||||
},
|
||||
"release-it": {
|
||||
"git": {
|
||||
"commit": true,
|
||||
"requireCleanWorkingDir": false,
|
||||
"commitMessage": "🚀RELEASE ${version}",
|
||||
"push": true,
|
||||
"tag": true,
|
||||
"tagName": null,
|
||||
"tagAnnotation": "${version}"
|
||||
},
|
||||
"npm": {
|
||||
"publish": false
|
||||
},
|
||||
"hooks": {
|
||||
"after:bump": "npx auto-changelog --commit-limit false -p -u --hide-credit && git add CHANGELOG.md"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user