- Node.js + Express
- MongoDB Atlas
git clone https://github.com/sandip2224/SnappyURL.git
npm install
npm install -D nodemon
MONGO_URI=<Your MongoDB Cluster URL>
Note: Get the following URL from MongoDB official website. You need to configure the
username
,password
anddbname
accordingly.
mongodb+srv://<username>:<password>@cluster0.x1ccn.mongodb.net/<dbname>?retryWrites=true&w=majority
npm run dev
GET /:slug -> Redirects shortened URL to original domain
POST /shorten -> Generate a new shortened URL for your existing URL
GET /api/docs -> Swagger documentation for snappyURL API
Distributed under the MIT License. See LICENSE
for more information.