Skip to content

A simple URL shortener server backed by PostgreSQL.

License

Notifications You must be signed in to change notification settings

swan-io/url-shortener

Repository files navigation

Swan URL shortener

A simple URL shortener server backed by PostgreSQL.

Getting started

You need to install pnpm 9.9.0.

Clone

$ git clone [email protected]/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