aymanesarrar / UrlShortener

a simple url shortener built with prisma and next api routes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:TypeScript 65.3%Language:CSS 29.2%Language:JavaScript 5.5%