A URL shortener server-side app built with Nest.js and MongoDB.
- Install Node.js - for IDE type checking.
- Install Yarn - for IDE type checking.
- Install Docker Compose.
- Clone the app:
git clone git@github.com:dominicarrojado/nestjs-mongodb-url-shortener.git
- Install npm packages - for IDE type checking.
cd nestjs-mongodb-url-shortener
yarn install --frozen-lockfile
- Build and run the Docker image.
yarn docker-compose:dev
- Access the app at http://localhost:3000.
- Make file changes and it will automatically rebuild the app.
yarn docker-compose:test
yarn docker-compose:test:cov
- Build and run the Docker image.
yarn docker-compose:test:watch
- Make file changes and it will automatically rerun tests related to changed files.
yarn docker-compose:prod
Learn how to build this url shortener app here.