otissv / url-shortener

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

URL Shortener app

Usage

Create short url Enter URL in textbox and submit

View All short codes Click URls in navigation menu to view a list of all URLs and their corresponding short URLs

To edit a URL

  • Click URls in navigation menu. Then Edit on the row of the url you would like to change.
  • When complete press the Save URL button.

Delete a URL od Short URL

  • Click URls in navigation menu. Then Delete on the row of the url you would like to delete.

Development

  1. Install the following software dependencies.
  • Node
  • Docker
  • Docker Compose
  • Yarn
  1. run npm run install.

  2. Ensure docker is running, Then run npm run dev to start the development environment. This may make take few a minute to download the docker containers if it's the first time running.

  3. To rebuild the development environment run npm run build:dev.

Production

  1. To start in production environment run npm run start.
  2. To rebuild the production environment run npm run build:start.

Commands

  • Development: npm run install. Starts application in development environment.

  • Production: npm run start Starts application in production environment.

  • stop: npm run start stop environment

  • clean: npm run start Warning! Removes all docker containers.

Tests

Client

Unit tests: npm run client:test Watch unit tests: npm run client:watch E2E tests: npm run client:e2e

For E2E application must be running.

API

Unit tests: npm run api:test Watch unit tests: npm run api:watch

About


Languages

Language:TypeScript 79.3%Language:Vue 11.2%Language:JavaScript 4.3%Language:CSS 4.1%Language:HTML 0.6%Language:Dockerfile 0.4%