Skip to content

a simple url shortener built with prisma and next api routes

Notifications You must be signed in to change notification settings

aymanesarrar/UrlShortener

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

setting up prisma

npx prisma db push # Introspects the database to infer and executes the changes required to make your database schema reflect the state of your Prisma schema
npx prisma studio # to open the database as a user interface to interact with it easily

About

a simple url shortener built with prisma and next api routes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published