DEV Community

loading...
Cover image for I built a link shortener app with NextJS

I built a link shortener app with NextJS

Jan Krzeptowski
I'm a self-taught web developer
・1 min read

Live demo: l.jkrzeptowski.pl

Libraries used:


I'd love to hear your feedback about this app. You can also introduce your ideas to this project by contributing to it.

Here's a link for the GitHub repo:

GitHub logo saj96n / surl

A modern link shortener

ShortURL

ShortURL is a modern link shortener based on Next.js

Demo: http://l.jkrzeptowski.pl/

Getting Started

1. Download the code of this repository by cloning it:

git clone https://github.com/saj96n/surl.git
Enter fullscreen mode Exit fullscreen mode

2. Then navigate to directory of the cloned repository and install required dependencies:

cd surl

npm install
# or
yarn install
Enter fullscreen mode Exit fullscreen mode

3. Configure environmental variables:

4. Configure authentication providers according to:

https://next-auth.js.org/configuration/providers

5. Finally run the app in dev environment or in production:

npm run dev
# or
npm run build
npm start
Enter fullscreen mode Exit fullscreen mode



Discussion (3)

Collapse
theodorusclarence profile image
Theodorus Clarence

Cool! I‘ve been wanting to learn Prisma, thanks for the source code. How do you like Prisma compared to other ORMs?

Collapse
gnvageesh profile image
GNVageesh

I am like kinda more to firestore...

Collapse
larsonnn profile image
Lars Feldeisen

We have to much link shortener