|
| 1 | +## [v0.1.0](https://github.com/adhocore/urlsh/releases/tag/v0.1.0) (2021-04-13) |
| 2 | + |
| 3 | +### Features |
| 4 | +- **Cmd.urlshc**: Add urlshc command (Jitendra Adhikari) [_7f30ea5_](https://github.com/adhocore/urlsh/commit/7f30ea5) |
| 5 | +- **Service.url**: Check url reach (host) if configured (Jitendra Adhikari) [_ca97005_](https://github.com/adhocore/urlsh/commit/ca97005) |
| 6 | +- **Request.url**: Append host to input (Jitendra Adhikari) [_79c845c_](https://github.com/adhocore/urlsh/commit/79c845c) |
| 7 | +- **Tmpl**: Toggle check on copy from history row (Jitendra Adhikari) [_5833b70_](https://github.com/adhocore/urlsh/commit/5833b70) |
| 8 | +- Add /banner route and resource for og:image (Jitendra Adhikari) [_ec7ed9c_](https://github.com/adhocore/urlsh/commit/ec7ed9c) |
| 9 | +- **Tmpl**: Add og tags (Jitendra Adhikari) [_f9f4a1d_](https://github.com/adhocore/urlsh/commit/f9f4a1d) |
| 10 | +- *****: Add favicon and robots router and template (Jitendra Adhikari) [_72a55fa_](https://github.com/adhocore/urlsh/commit/72a55fa) |
| 11 | +- **Tmpl**: Add copy btn in history row, simplify dynamic row (Jitendra Adhikari) [_aa6bfdc_](https://github.com/adhocore/urlsh/commit/aa6bfdc) |
| 12 | +- **Tmpl**: Add history table, rename copy button (Jitendra Adhikari) [_e7367cb_](https://github.com/adhocore/urlsh/commit/e7367cb) |
| 13 | +- **Controller**: Show UI in homepage (Jitendra Adhikari) [_3d1f396_](https://github.com/adhocore/urlsh/commit/3d1f396) |
| 14 | +- **Tmpl**: Add home html template (Jitendra Adhikari) [_0fc94ad_](https://github.com/adhocore/urlsh/commit/0fc94ad) |
| 15 | +- **Import.service**: Make cache deactivation async, increment hits to compare threshold (Jitendra Adhikari) [_97fdfe3_](https://github.com/adhocore/urlsh/commit/97fdfe3) |
| 16 | +- **Controller**: Make hits increment async (Jitendra Adhikari) [_193af34_](https://github.com/adhocore/urlsh/commit/193af34) |
| 17 | +- **Service.url**: Make cache deactivation async (Jitendra Adhikari) [_bd6fb24_](https://github.com/adhocore/urlsh/commit/bd6fb24) |
| 18 | +- **Controller**: Add x-cached header for cached data (Jitendra Adhikari) [_eadf345_](https://github.com/adhocore/urlsh/commit/eadf345) |
| 19 | +- **Service.client**: Lookup return flag to signify cached value (Jitendra Adhikari) [_ce0ed85_](https://github.com/adhocore/urlsh/commit/ce0ed85) |
| 20 | +- **Cache**: Add redis cache with lookup, persist and deactivate feature (Jitendra Adhikari) [_e781d68_](https://github.com/adhocore/urlsh/commit/e781d68) |
| 21 | +- **Controller**: Add endpoint to serve short url (Jitendra Adhikari) [_df2d6a9_](https://github.com/adhocore/urlsh/commit/df2d6a9) |
| 22 | +- **Service.url**: Add service to lookup origin & inc hits by shortcode (Jitendra Adhikari) [_79ac77a_](https://github.com/adhocore/urlsh/commit/79ac77a) |
| 23 | +- **Common**: Add shortcode regex (Jitendra Adhikari) [_040db1d_](https://github.com/adhocore/urlsh/commit/040db1d) |
| 24 | +- **Router**: Register short url delete endpoint (Jitendra Adhikari) [_c12f42a_](https://github.com/adhocore/urlsh/commit/c12f42a) |
| 25 | +- **Controller**: Add delete endpoint (Jitendra Adhikari) [_79455d4_](https://github.com/adhocore/urlsh/commit/79455d4) |
| 26 | +- **Common**: Add no short code error (Jitendra Adhikari) [_31e2f43_](https://github.com/adhocore/urlsh/commit/31e2f43) |
| 27 | +- **Service.url**: Add service to delete short url (Jitendra Adhikari) [_24e8d7d_](https://github.com/adhocore/urlsh/commit/24e8d7d) |
| 28 | +- **Common**: Add auth token errors (Jitendra Adhikari) [_e7fa252_](https://github.com/adhocore/urlsh/commit/e7fa252) |
| 29 | +- **Middleware**: Add auth middleware to validate header token for admin (Jitendra Adhikari) [_11f06d9_](https://github.com/adhocore/urlsh/commit/11f06d9) |
| 30 | +- **Router**: Register admin list/search controller (Jitendra Adhikari) [_7ec1ac1_](https://github.com/adhocore/urlsh/commit/7ec1ac1) |
| 31 | +- **Controller**: Add admin list/search endpoint controller (Jitendra Adhikari) [_136666e_](https://github.com/adhocore/urlsh/commit/136666e) |
| 32 | +- **Common**: Add data not found error (Jitendra Adhikari) [_98c1160_](https://github.com/adhocore/urlsh/commit/98c1160) |
| 33 | +- **Service.url**: Add service to list urls by filter for admin (Jitendra Adhikari) [_be7bff1_](https://github.com/adhocore/urlsh/commit/be7bff1) |
| 34 | +- **Request**: Add UrlFilter definition with offset getter for search (Jitendra Adhikari) [_70dc8d4_](https://github.com/adhocore/urlsh/commit/70dc8d4) |
| 35 | +- **Response.body**: Add Merge helper (Jitendra Adhikari) [_e6f8e12_](https://github.com/adhocore/urlsh/commit/e6f8e12) |
| 36 | +- **Controller**: Add client api controller for short url (Jitendra Adhikari) [_b729830_](https://github.com/adhocore/urlsh/commit/b729830) |
| 37 | +- **Common**: Add short code length constant (Jitendra Adhikari) [_6c93eae_](https://github.com/adhocore/urlsh/commit/6c93eae) |
| 38 | +- **Service**: Add short url creation service (Jitendra Adhikari) [_ba6e13b_](https://github.com/adhocore/urlsh/commit/ba6e13b) |
| 39 | +- **Request**: Add short url create request struct with validator (Jitendra Adhikari) [_d291da2_](https://github.com/adhocore/urlsh/commit/d291da2) |
| 40 | +- **Common**: Add errors to be used in validation throughout (Jitendra Adhikari) [_dbf74f6_](https://github.com/adhocore/urlsh/commit/dbf74f6) |
| 41 | +- **Util**: Add random length helper util (Jitendra Adhikari) [_dbbf1ad_](https://github.com/adhocore/urlsh/commit/dbbf1ad) |
| 42 | +- **Orm**: Add postgres connection handler for gorm (Jitendra Adhikari) [_aca8fc1_](https://github.com/adhocore/urlsh/commit/aca8fc1) |
| 43 | +- Add DateLayout const, use time.UTC instead of common.UTC (Jitendra Adhikari) [_f8f53a8_](https://github.com/adhocore/urlsh/commit/f8f53a8) |
| 44 | +- **Model**: Add url model (Jitendra Adhikari) [_8f0af8a_](https://github.com/adhocore/urlsh/commit/8f0af8a) |
| 45 | +- **Model**: Add keyword model (Jitendra Adhikari) [_8462de3_](https://github.com/adhocore/urlsh/commit/8462de3) |
| 46 | +- **Controller**: Add not found handler (Jitendra Adhikari) [_e8437d5_](https://github.com/adhocore/urlsh/commit/e8437d5) |
| 47 | +- **Router**: Add route registrar with multi endpoints handler (Jitendra Adhikari) [_153a45a_](https://github.com/adhocore/urlsh/commit/153a45a) |
| 48 | +- **Main**: Listen and serve request, register default route (Jitendra Adhikari) [_1020674_](https://github.com/adhocore/urlsh/commit/1020674) |
| 49 | +- **Controller**: Add frontend controller (Jitendra Adhikari) [_0955f36_](https://github.com/adhocore/urlsh/commit/0955f36) |
| 50 | +- **Response**: Add json response writer (Jitendra Adhikari) [_5894f71_](https://github.com/adhocore/urlsh/commit/5894f71) |
| 51 | +- Init module (Jitendra Adhikari) [_8e796d3_](https://github.com/adhocore/urlsh/commit/8e796d3) |
| 52 | + |
| 53 | +### Bug Fixes |
| 54 | +- Typo (Jitendra Adhikari) [_4c11604_](https://github.com/adhocore/urlsh/commit/4c11604) |
| 55 | +- **Service.url**: Use generic error (Jitendra Adhikari) [_034ae99_](https://github.com/adhocore/urlsh/commit/034ae99) |
| 56 | +- **Cache**: Redis uses different env (Jitendra Adhikari) [_6038ced_](https://github.com/adhocore/urlsh/commit/6038ced) |
| 57 | +- **Request**: Validate url with regex (Jitendra Adhikari) [_3bc274c_](https://github.com/adhocore/urlsh/commit/3bc274c) |
| 58 | +- **Request**: Exclude pattern (Jitendra Adhikari) [_e27a8b8_](https://github.com/adhocore/urlsh/commit/e27a8b8) |
| 59 | +- **Tmpl**: Use short href (Jitendra Adhikari) [_d1c067e_](https://github.com/adhocore/urlsh/commit/d1c067e) |
| 60 | +- **Request**: Blacklist local urls (Jitendra Adhikari) [_d37cfc5_](https://github.com/adhocore/urlsh/commit/d37cfc5) |
| 61 | +- **Tmpl**: Hide copy btn on error (Jitendra Adhikari) [_6e08e41_](https://github.com/adhocore/urlsh/commit/6e08e41) |
| 62 | +- **Cache**: User h is not usable (Jitendra Adhikari) [_ef8e844_](https://github.com/adhocore/urlsh/commit/ef8e844) |
| 63 | +- **Init-db**: Make executable (Jitendra Adhikari) [_48ca0cf_](https://github.com/adhocore/urlsh/commit/48ca0cf) |
| 64 | +- **Main**: Use port dynamically (Jitendra Adhikari) [_5233f98_](https://github.com/adhocore/urlsh/commit/5233f98) |
| 65 | +- **Cache.redis**: A;ways populate cached model (Jitendra Adhikari) [_e7f265d_](https://github.com/adhocore/urlsh/commit/e7f265d) |
| 66 | +- **Service.url**: Ignore empty short code early (Jitendra Adhikari) [_d6439aa_](https://github.com/adhocore/urlsh/commit/d6439aa) |
| 67 | +- **Service.url**: Select deleted field (Jitendra Adhikari) [_998d8c3_](https://github.com/adhocore/urlsh/commit/998d8c3) |
| 68 | +- **Service.url**: When checking dupe, exclude deleted (Jitendra Adhikari) [_dc99646_](https://github.com/adhocore/urlsh/commit/dc99646) |
| 69 | +- **Middleware**: Use req.URL.Path for portability (Jitendra Adhikari) [_860b16d_](https://github.com/adhocore/urlsh/commit/860b16d) |
| 70 | + |
| 71 | +### Internal Refactors |
| 72 | +- Move tmpl/ to assets/ (Jitendra Adhikari) [_65bc2a0_](https://github.com/adhocore/urlsh/commit/65bc2a0) |
| 73 | +- **Service.url**: Make validateURLInput public (Jitendra Adhikari) [_85c9194_](https://github.com/adhocore/urlsh/commit/85c9194) |
| 74 | +- Validate url len, keyword char, rephrase url filter error msg (Jitendra Adhikari) [_6bc3661_](https://github.com/adhocore/urlsh/commit/6bc3661) |
| 75 | +- *****: Use 2000 as default port (Jitendra Adhikari) [_01f58ab_](https://github.com/adhocore/urlsh/commit/01f58ab) |
| 76 | +- **Tmpl**: Add source code url, fix per w3c validator (Jitendra Adhikari) [_2c0a8c6_](https://github.com/adhocore/urlsh/commit/2c0a8c6) |
| 77 | +- Use PORT instead of APP_PORT (Jitendra Adhikari) [_5c014f9_](https://github.com/adhocore/urlsh/commit/5c014f9) |
| 78 | +- **Orm,cache**: Use DATABASE_URL and REDIS_URL env instead (Jitendra Adhikari) [_8910662_](https://github.com/adhocore/urlsh/commit/8910662) |
| 79 | +- *****: Use 301 permanent redirect instead (Jitendra Adhikari) [_2619adc_](https://github.com/adhocore/urlsh/commit/2619adc) |
| 80 | +- **Postman**: Move "/" to "/status" (Jitendra Adhikari) [_42f5da3_](https://github.com/adhocore/urlsh/commit/42f5da3) |
| 81 | +- **Router**: Move "/" to "/status" (Jitendra Adhikari) [_9ee7a87_](https://github.com/adhocore/urlsh/commit/9ee7a87) |
| 82 | +- **Cache.redis**: Use pool instead (Jitendra Adhikari) [_cc24a94_](https://github.com/adhocore/urlsh/commit/cc24a94) |
| 83 | +- **Cache**: Support redis user/pass (Jitendra Adhikari) [_0ad1754_](https://github.com/adhocore/urlsh/commit/0ad1754) |
| 84 | +- **Controller**: Adapt to changed service layer (with cache) (Jitendra Adhikari) [_c4edc2e_](https://github.com/adhocore/urlsh/commit/c4edc2e) |
| 85 | +- **Service.url**: Integrate with cache layer for delete (Jitendra Adhikari) [_df1ad3f_](https://github.com/adhocore/urlsh/commit/df1ad3f) |
| 86 | +- **Service.url**: Integrate with cache layer for lookup (Jitendra Adhikari) [_9bdc002_](https://github.com/adhocore/urlsh/commit/9bdc002) |
| 87 | +- **Config.env**: Add some hints (Jitendra Adhikari) [_bbe5596_](https://github.com/adhocore/urlsh/commit/bbe5596) |
| 88 | +- **Orm**: Use test db for APP_ENV=test (Jitendra Adhikari) [_6fefad1_](https://github.com/adhocore/urlsh/commit/6fefad1) |
| 89 | +- **Router**: Refactor to handle ServeShortUrl request (Jitendra Adhikari) [_a6d8a1f_](https://github.com/adhocore/urlsh/commit/a6d8a1f) |
| 90 | +- **Main**: Attach mux handler from router (Jitendra Adhikari) [_8fa951b_](https://github.com/adhocore/urlsh/commit/8fa951b) |
| 91 | +- **Router**: Use mux instead to make it middleware friendly (Jitendra Adhikari) [_4f44825_](https://github.com/adhocore/urlsh/commit/4f44825) |
| 92 | +- **Service.url**: Add doc, always use offset (Jitendra Adhikari) [_22f50e7_](https://github.com/adhocore/urlsh/commit/22f50e7) |
| 93 | +- **Controller.client**: Simplify with body.Merge (Jitendra Adhikari) [_8899f07_](https://github.com/adhocore/urlsh/commit/8899f07) |
| 94 | +- **Request.url**: Cleanup and simplify GetExpiresOn (Jitendra Adhikari) [_cc24550_](https://github.com/adhocore/urlsh/commit/cc24550) |
| 95 | +- **Main**: Switch to router instead (Jitendra Adhikari) [_e314a4a_](https://github.com/adhocore/urlsh/commit/e314a4a) |
| 96 | + |
| 97 | +### Miscellaneous |
| 98 | +- Minor tweak homepage html (Jitendra Adhikari) [_f912681_](https://github.com/adhocore/urlsh/commit/f912681) |
| 99 | +- Use short url to source code (Jitendra Adhikari) [_79db201_](https://github.com/adhocore/urlsh/commit/79db201) |
| 100 | +- Timeout 1s (Jitendra Adhikari) [_41e9fbf_](https://github.com/adhocore/urlsh/commit/41e9fbf) |
| 101 | +- Add check conf (Jitendra Adhikari) [_68bc576_](https://github.com/adhocore/urlsh/commit/68bc576) |
| 102 | +- No tag autocomplete (Jitendra Adhikari) [_d94c26c_](https://github.com/adhocore/urlsh/commit/d94c26c) |
| 103 | +- Fix typo (Jitendra Adhikari) [_78bf1ff_](https://github.com/adhocore/urlsh/commit/78bf1ff) |
| 104 | +- **Tmpl**: Use nbsp (Jitendra Adhikari) [_4e7b2cb_](https://github.com/adhocore/urlsh/commit/4e7b2cb) |
| 105 | +- **Config**: Fix db host (Jitendra Adhikari) [_bc4871b_](https://github.com/adhocore/urlsh/commit/bc4871b) |
| 106 | +- **Config**: Add DATABASE_URL and REDIS_URL (Jitendra Adhikari) [_bf17b7a_](https://github.com/adhocore/urlsh/commit/bf17b7a) |
| 107 | +- **Common**: Normalize error msg (Jitendra Adhikari) [_b7f93e6_](https://github.com/adhocore/urlsh/commit/b7f93e6) |
| 108 | +- Cleanup (Jitendra Adhikari) [_c34d86a_](https://github.com/adhocore/urlsh/commit/c34d86a) |
| 109 | +- Docker cache (Jitendra Adhikari) [_ec6d9a8_](https://github.com/adhocore/urlsh/commit/ec6d9a8) |
| 110 | +- Flush redis before test (Jitendra Adhikari) [_b3a0610_](https://github.com/adhocore/urlsh/commit/b3a0610) |
| 111 | +- Add gha test (Jitendra Adhikari) [_75fca1a_](https://github.com/adhocore/urlsh/commit/75fca1a) |
| 112 | +- Gh codeowner (Jitendra Adhikari) [_6c23bac_](https://github.com/adhocore/urlsh/commit/6c23bac) |
| 113 | +- **Common**: Popular website hits count (Jitendra Adhikari) [_1804fe9_](https://github.com/adhocore/urlsh/commit/1804fe9) |
| 114 | +- **Config**: Redis cache host:port (Jitendra Adhikari) [_4cbb672_](https://github.com/adhocore/urlsh/commit/4cbb672) |
| 115 | +- **Deps**: Add redigo module (Jitendra Adhikari) [_e37f192_](https://github.com/adhocore/urlsh/commit/e37f192) |
| 116 | +- Gha lint (Jitendra Adhikari) [_36e8942_](https://github.com/adhocore/urlsh/commit/36e8942) |
| 117 | +- **Config**: Document APP_PORT (Jitendra Adhikari) [_2916f87_](https://github.com/adhocore/urlsh/commit/2916f87) |
| 118 | +- **Postman**: Add collection and environment (Jitendra Adhikari) [_f630b8b_](https://github.com/adhocore/urlsh/commit/f630b8b) |
| 119 | +- **Config**: Add env example config (Jitendra Adhikari) [_83a3dd6_](https://github.com/adhocore/urlsh/commit/83a3dd6) |
| 120 | +- **Git**: Add .env to ignore (Jitendra Adhikari) [_ceab82c_](https://github.com/adhocore/urlsh/commit/ceab82c) |
| 121 | +- **Deps**: Add postgres driver and gorm (Jitendra Adhikari) [_544705a_](https://github.com/adhocore/urlsh/commit/544705a) |
| 122 | +- **Cs**: Add editorconfig config (Jitendra Adhikari) [_97b5312_](https://github.com/adhocore/urlsh/commit/97b5312) |
| 123 | +- Add gitignore (Jitendra Adhikari) [_cc2d8f1_](https://github.com/adhocore/urlsh/commit/cc2d8f1) |
| 124 | + |
| 125 | +### Documentations |
| 126 | +- Add urlshc terminal client (Jitendra Adhikari) [_25c8a31_](https://github.com/adhocore/urlsh/commit/25c8a31) |
| 127 | +- Add screenshot (Jitendra Adhikari) [_d682cb4_](https://github.com/adhocore/urlsh/commit/d682cb4) |
| 128 | +- Update readme (Jitendra Adhikari) [_b7100c3_](https://github.com/adhocore/urlsh/commit/b7100c3) |
| 129 | +- Move "/" to "/status" (Jitendra Adhikari) [_86d1933_](https://github.com/adhocore/urlsh/commit/86d1933) |
| 130 | +- About redis cache (Jitendra Adhikari) [_bb8ead9_](https://github.com/adhocore/urlsh/commit/bb8ead9) |
| 131 | +- **Cache**: Add method docs (Jitendra Adhikari) [_925bab0_](https://github.com/adhocore/urlsh/commit/925bab0) |
| 132 | +- About test env and cov (Jitendra Adhikari) [_696ca9b_](https://github.com/adhocore/urlsh/commit/696ca9b) |
| 133 | +- Create url short code param and behavior (Jitendra Adhikari) [_0379809_](https://github.com/adhocore/urlsh/commit/0379809) |
| 134 | +- Postman redirect (Jitendra Adhikari) [_26c8efc_](https://github.com/adhocore/urlsh/commit/26c8efc) |
| 135 | +- **Readme**: Add installation/setup/testing steps, endpoint docs and postman (Jitendra Adhikari) [_e7fe6c6_](https://github.com/adhocore/urlsh/commit/e7fe6c6) |
| 136 | +- *****: Add method docs for all source (Jitendra Adhikari) [_ed3277f_](https://github.com/adhocore/urlsh/commit/ed3277f) |
| 137 | +- Init repo (Jitendra Adhikari) [_9c9ad4a_](https://github.com/adhocore/urlsh/commit/9c9ad4a) |
| 138 | + |
| 139 | +### Builds |
| 140 | +- **Docker**: APP_DB_DSN is no longer needed (Jitendra Adhikari) [_249e4f6_](https://github.com/adhocore/urlsh/commit/249e4f6) |
| 141 | +- **Docker**: Add redis cache (Jitendra Adhikari) [_744d5eb_](https://github.com/adhocore/urlsh/commit/744d5eb) |
| 142 | +- **Docker**: Add docker-compose (Jitendra Adhikari) [_d2b182f_](https://github.com/adhocore/urlsh/commit/d2b182f) |
| 143 | +- **Docker**: Add init-test-db (Jitendra Adhikari) [_5832a09_](https://github.com/adhocore/urlsh/commit/5832a09) |
| 144 | + |
| 145 | + |
0 commit comments