https://github.com/turbaszek/tnijto
Easy to deploy Google Cloud native link shortener 🚀
https://github.com/turbaszek/tnijto
cloudrun gcp golang open-source shorten-urls shortener
Last synced: about 1 year ago
JSON representation
Easy to deploy Google Cloud native link shortener 🚀
- Host: GitHub
- URL: https://github.com/turbaszek/tnijto
- Owner: turbaszek
- License: apache-2.0
- Created: 2020-08-17T14:50:56.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-12T12:38:54.000Z (over 5 years ago)
- Last Synced: 2025-04-14T06:47:56.529Z (about 1 year ago)
- Topics: cloudrun, gcp, golang, open-source, shorten-urls, shortener
- Language: CSS
- Homepage:
- Size: 99.6 KB
- Stars: 5
- Watchers: 5
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README

# TnijTo
Easy to deploy link shortener.
**Table of Contents**
- [Development](#development)
- [Deployment](#deployment)
- [Contributing](#contributing)
## Development
To run the app just do:
```shell
PROJECT_ID="your-project-id" make run
```
where `PROJECT_ID` is the id of Google Cloud project you want to use.
## Deployment
First authenticate using:
```shell
gcloud auth login
```
To deploy TnijTo on Google Cloud you have to enable [Cloud Build](https://cloud.google.com/cloud-build)
and [Cloud Run](https://cloud.google.com/run) services:
```shell
make setup
```
then go to https://console.cloud.google.com/firestore and enable native Firestore mode.
Deploy the image using Cloud Build and deploy using Cloud Run:
```shell
PROJECT_ID="your-project-id" REGION="europe-west1" make deploy
```
where `PROJECT_ID` is the id of Google Cloud project you want to use.
## Contributing
We welcome all contributions! Please submit an issue or PR no matter if it's a bug or a typo.
This project is using [pre-commits](https://pre-commit.com) to ensure the
quality of the code. To install pre-commits just do:
```bash
pip install pre-commit
# or
brew install pre-commit
```
Then from project directory run `pre-commit install`.