URL shortener using NodeJS (express) and MongoDB (mongoose).
- NodeJS
- Docker, docker-compose
- Clone repository:
git clone https://github.com/Lomank123/shrinker.git
- Copy
.env.sample
to.env
and change env variables if needed:
cp .env.sample .env
- Install all packages:
npm install
- Build and up the DB container:
docker compose up -d --build
- Run the app:
npm run start
The app provides 2 API endpoints:
POST /
- Generate new short url from givenurl
GET /:shortHash
- Redirect from short url to the original one
Remained tasks:
- Dockerize main app
- Add Bloom Filters (if possible)
- Add tests
- Add frontend