Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nilenso/chinnaswamy
The 'Scalable' URL shortener
https://github.com/nilenso/chinnaswamy
Last synced: 16 days ago
JSON representation
The 'Scalable' URL shortener
- Host: GitHub
- URL: https://github.com/nilenso/chinnaswamy
- Owner: nilenso
- License: agpl-3.0
- Created: 2022-04-13T10:39:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-04-22T10:51:25.000Z (over 2 years ago)
- Last Synced: 2024-08-08T18:21:44.925Z (4 months ago)
- Language: Go
- Size: 101 KB
- Stars: 3
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - nilenso/chinnaswamy - The 'Scalable' URL shortener (others)
README
# Chinnaswamy
The 'Scalable' URL shortener## Running tests
To run end to end tests:
```
CHINNASWAMY_TEST_HOST="" go test -count=1 ./integration_test
```## Running locally
Use docker compose:
```
docker-compose -f docker-compose.dev.yaml up -d
```NOTE: You must ensure that a keyspace named `chinnaswamy` exists in the Cassandra cluster.
Eg, for local setup:
```cassandraql
CREATE KEYSPACE chinnaswamy WITH REPLICATION = {
'class': 'SimpleStrategy',
'replication_factor': 1
};
```## Running migrations
Use the `migrate` docker image, like so:
```
docker run -v /db/migrations:/migrations \
--network \
migrate/migrate -path=/migrations/ -database cassandra:///chinnaswamy up
```For the local development setup started with:
```
docker-compose -f docker-compose.dev.yaml up -d
```This would look like:
```
docker run -v ~/chinnaswamy/db/migrations:/migrations \
--network chinnaswamy_chinnaswamy-devnet \
migrate/migrate -path=/migrations/ -database cassandra://cassandra:9042/system up
```