Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit52bfcc4

Browse files
committed
Update Readme file 📝
1 parent9d26d42 commit52bfcc4

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

‎README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,29 @@
11
#urless
2-
URL Shortener Service
2+
URL Shortener`API` Service
3+
4+
self-hostable open-source URL shortening web API service with a Fast API. It allows you to host your own URL shortenerur less easy to use.
5+
6+
7+
##Quickstart
8+
9+
Urless is written in Python, using Redis as its primary database.( TODO redisgears + mysql)
10+
11+
12+
##Installation
13+
Download the latest version of URLess via this image 'alivx/urless:latest'.
14+
To to container:
15+
```Bash
16+
docker run --rm -ti -p 8000:8000 alivx/urless:latest
17+
```
18+
* install redis-server or use the below docker command:
19+
```Bash
20+
docker run -ti --rm --network host -p 6379:6379 redis:latest
21+
```
22+
23+
24+
To test service run CURL command:
25+
```Bash
26+
curl --location --request POST'http://127.0.0.1:8000/' \
27+
--header'Content-Type: application/json' \
28+
--data-raw'{"url":"www.google.com"}'
29+
```

‎api/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
app=FastAPI()
9-
rds=redis.Redis()
9+
rds=redis.Redis(host="127.0.0.1")
1010

1111

1212
classItem(BaseModel):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp