A simple URL shortener server backed by PostgreSQL.
You need to install yarn.
$ git clone [email protected]/swan-io/url-shortener.git
$ yarn
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:
$ yarn dev
To build the production codebase, run:
$ yarn build
Run tests (using vitest and pgmock):
$ yarn test