A simple URL shortener server backed by PostgreSQL.
You need to install pnpm 9.9.0.
$ git clone [email protected]/swan-io/url-shortener.git
$ pnpm install
At the project root, you should find a .env.example
file. Copy its contents to a new .env
file.
To start the development server, run:
$ pnpm dev
To build the production codebase, run:
$ pnpm build
Run tests (using vitest and pgmock):
$ pnpm test