This is a web application built with Next.js that allows users to shorten URLs. It uses Prisma as the ORM to interact with a PostgreSQL database, and is written in TypeScript.
To get started with this project, you'll need to have Node.js and a PostgreSQL database. You can then follow these steps:
- Clone the repository:
git clone https://github.com/supramaxis/learning-nextjs.git
- Install dependencies:
npm install
- Rename
.env.example
to.env
and fill in the values - Run the database migrations:
npx prisma migrate dev
- Start the development server:
npm run dev
Once the development server is running, you can access the web app at http://localhost:3000
. From there, you can try the demo or login and create a link. The shortened URL will be displayed on the page.