Skip to content

An URL-Shortener API app using NestJS that is a framework based on typescript

License

Notifications You must be signed in to change notification settings

kanelv/url-shortener

Repository files navigation

URL SHORTENER

Description

An URL-Shortener API app using NestJS that is a framework based on typescript

Installation

yarn install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Running CircleCI Locally

circleci local execute build-and-test

Debug using SSH on CircleCI

ssh -i /path/to/id_rsa [email protected]
ssh -i ~/.ssh/id_ed25519_kanelv -p 64535 34.227.75.120

Database Migration

npm run migration:generate src/core/database/migrations/init

References

https://www.digitalocean.com/community/tutorials/how-to-build-a-type-safe-url-shortener-in-nodejs-with-nestjs#step-1-preparing-your-development-environments

Free PostgreSQL for demo

https://dev.to/prisma/set-up-a-free-postgresql-database-on-supabase-to-use-with-prisma-3pk6

Stay in touch