Skip to content

shortie-sh/server

Repository files navigation

shortie-server

The server component to a very nerdy url shortner

UX

Just run echo google.com | nc shortie.sh in a terminal.

(You might need to install netcat)

If netcat complains about a port, use port 31337 or whatever port you specified in docker.

APIs

shortie-server exposes two APIs:

  • REST API

    The OpenAPI spec is available at api/rest/openapi.yml

    Endpoint: /api/rest/

  • GraphQL API

    The GraphQL schema is available at api/graphql/schema.gql

    Endpoint: /api/graphql

    A sandbox is available when you visit the endpoint in a browser.

Deployment

Use the included docker-compose.yml file!