This is a Url shortener REST API written in Typescript
- install Nodejs version v18.16.1
-
Clone the repository:
git clone https://github.com/emmanuel1-byte/Url-shortener-Backend.git
-
Install dependencies:
cd 'Url-shortener-Backend' npm install
-
Build and run the project :
npm start
-
Run with Docker
- Build Image
docker build -t url-shortener .
- Build and run containers
docker compose up -d
- Run test
npm run test