Skip to content

jdksloan/Node-UrlShortener

Repository files navigation

Url Shortener 📦

This is a server that uses Node.js, Express and TypeScript.

Installation

To run this project you'll need:

  • Node.js (version 10+)
  • npm available on your path in your CLI

Install dependencies with NPM:

npm install

NPM commands

You can run the following with npm run ...:

  • build: builds the project using TypeScript, output will be in the dist folder;
  • start: starts the server in development mode, automatically reloading when code changes;
  • test: runs tests in watch mode using Jest;
  • format: formats all code using Prettier

Formatting

We use Prettier to format TypeScript source code. You can see the settings in .prettierc.

Additionally, EditorConfig is used to keep in sync indentation and some other minor editor settings.

Tests

You can add additional tests in the ./test/integration.test.ts file. The project is set up to use Jest with Typescript, you can run the tests using:

npm run test

About

URL shortener in TypeScript written in Nodejs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published