Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

dominicarrojado/nestjs-mongodb-url-shortener

Repository files navigation

NestJS MongoDB URL Shortener

CI/CD codecov

A URL shortener server-side app built with Nest.js and MongoDB.

Quick Start

  1. Install Node.js - for IDE type checking.
  2. Install Yarn - for IDE type checking.
  3. Install Docker Compose.
  4. Clone the app:
git clone git@github.com:dominicarrojado/nestjs-mongodb-url-shortener.git
  1. Install npm packages - for IDE type checking.
cd nestjs-mongodb-url-shortener
yarn install --frozen-lockfile
  1. Build and run the Docker image.
yarn docker-compose:dev
  1. Access the app at http://localhost:3000.
  2. Make file changes and it will automatically rebuild the app.

Running All Tests

yarn docker-compose:test

Running All Tests (with coverage)

yarn docker-compose:test:cov

Running Tests (Watch)

  1. Build and run the Docker image.
yarn docker-compose:test:watch
  1. Make file changes and it will automatically rerun tests related to changed files.

Build For Production

yarn docker-compose:prod

VSCode Extensions

Learn

Learn how to build this url shortener app here.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.