Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 703 Bytes

README.md

File metadata and controls

47 lines (29 loc) · 703 Bytes

Swan URL shortener

A simple URL shortener server backed by PostgreSQL.

Getting started

You need to install pnpm.

Clone

$ git clone git@github.com/swan-io/url-shortener.git

Install

$ pnpm install

Environment variables

At the project root, you should find a .env.example file. Copy its contents to a new .env file.

Development

To start the development server, run:

$ pnpm dev

Building

To build the production codebase, run:

$ pnpm build

Testing

Run tests (using vitest and pgmock):

$ pnpm test