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

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

Installation

$ npm 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

Reference

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

URL SHORTENER

Requirement

Setup

Database

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

Test

Running CircleCI Locally

circleci local execute build-and-test

Debug using SSH on CircleCI

ssh -i /path/to/id_rsa user@server.nixcraft.com
ssh -i ~/.ssh/id_ed25519_kanelv -p 64535 34.227.75.120

References

Free PostgreSQL for demo

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

Stay in touch