https://github.com/bluecap-se/minime
Link shortener app
https://github.com/bluecap-se/minime
aws django docker drf kubernetes postgresql python reactjs redis terraform
Last synced: 3 months ago
JSON representation
Link shortener app
- Host: GitHub
- URL: https://github.com/bluecap-se/minime
- Owner: bluecap-se
- License: mit
- Created: 2018-06-22T11:47:48.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-19T23:42:59.000Z (almost 3 years ago)
- Last Synced: 2025-02-26T17:14:59.909Z (over 1 year ago)
- Topics: aws, django, docker, drf, kubernetes, postgresql, python, reactjs, redis, terraform
- Language: Python
- Homepage:
- Size: 1.54 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE
Awesome Lists containing this project
README
# MiniMe
[](https://github.com/bluecap-se/minime/actions/workflows/backend.yml)
[](https://github.com/bluecap-se/minime/actions/workflows/frontend.yml)

[](https://coveralls.io/github/bluecap-se/minime?branch=develop)

[](https://hub.docker.com/r/bluecap/minime)

[](https://github.com/bluecap-se/minime/blob/master/LICENSE)
The last link shortener you'll ever need.
## Get started
### Run with Docker
Minime can run with [Docker](https://www.docker.com) compose, to set up follow these steps:
```
$ git clone git@github.com:bluecap-se/minime.git && cd "$_"
$ make docker-run
$ open http://127.0.0.1:8000
```
### Run with Kubernetes
Minime can run with [Kubernetes](https://kubernetes.io), to set up follow these steps:
```
$ git clone git@github.com:bluecap-se/minime.git && cd "$_"
$ minikube start
$ make infra-k8s-apply
$ open `minikube service app --url`
```
## Deployment
### AWS ECS
Minime can be deployed on AWS ECS using [Terraform](https://www.terraform.io).
```
$ make infra-init
```
Then apply the changes with:
```
$ make infra-apply
```
### Kubernetes
Minime can be deployed to any [Kubernetes](https://kubernetes.io) cluster.
First, set up your cluster and point it to kubectl. Then run:
```
$ make infra-k8s-apply
```
## Environment variables
These environment variables are available:
| Variable | Description | Default |
| ----------------- | ---------------------------- | --------- |
| ALLOWED_HOSTS | Set to your domain | Localhost |
| DJANGO_DEBUG | Debug mode | False |
| DJANGO_SECRET_KEY | Secret key | Change! |
| DJT_ENABLED | Show Django Debug Toolbar? | False |
| DATABASE_URL | URL to database | SQLite |
| REDIS_URL | URL to redis | Memory |
| SENTRY_DSN | URL to Sentry error tracking | None |
## Run tests
Run the tests in docker container:
```
$ docker exec mini_app make test
```
### Test coverage
```
$ docker exec mini_app make test-coverage
$ open htmlcov/index.html
```
## License
Published under [MIT License](https://github.com/bluecap-se/minime/blob/master/LICENSE).