A simple URL shorte
- Shorten a URL
- Return shortened URL
- Seed
- Swagger documentation
- Dockerfile
- Clone project
yarn install
- Clone the
.env.template
file and rename it to.env
- Change environment variables
- Running the app
yarn start:dev
Build the image
docker build -t url-shortener-api .
Create a container based on the image 📦
docker run -p 3033:3033 -d --name my-api url-shortener-api
curl -X 'GET' 'http://localhost:3033/api/v1/seed' -H 'accept: */*'
http://localhost:3033/api