Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wieczorek1990/slink
Link shortener
https://github.com/wieczorek1990/slink
Last synced: 12 days ago
JSON representation
Link shortener
- Host: GitHub
- URL: https://github.com/wieczorek1990/slink
- Owner: wieczorek1990
- Created: 2019-04-05T11:36:02.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-24T16:45:25.000Z (almost 6 years ago)
- Last Synced: 2024-11-24T15:16:14.088Z (2 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Slink
=====Link shortener service implemented in Python 3 and Django.
# Running
Assuming you have fish shell:
```
./install.fish
./run_dev.fish
```or
```
docker-compose up
```Django port is 8000, Docker exposes it to port 80.
# Routes
* `/` - main screen
* `/links/` - link redirection
* `/admin/` - if you use `python3 slink/manage.py createsuperuser`
admin panel is available# Environment variables
Modify the following either in `run_dev.fish` or `run_prod.fish`.
* `DEBUG` - whether the application runs in debug mode
* `SECRET_KEY` - Django secret key
* `LINK_LENGTH` - generated link lenth
# Checking code style
```
./code_style.fish
```