Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

url-shortner aka ShortieLink

A minimal Turborepo monorepo for a URL shortener service.

Structure

  • apps/client: Frontend (Next.js, Bulma CSS) — runs on port 3000
  • apps/server: Backend (Express, Prisma) — runs on port 4000
  • packages/db: Prisma setup with ShortUrl model
  • packages/config: Shared tsconfig, eslint, prettier configs

Development

  • Set DATABASE_URL in your environment to point to your local Postgres instance.
  • Run npm run db:push to apply Prisma schema to the database.
  • Run npm run db:studio to open Prisma Studio.
  • Run npm run dev to start all apps (FE: http://localhost:3000, BE: http://localhost:4000)

Setup

  1. Install dependencies: npm install
  2. Configure your .env file with DATABASE_URL for Postgres and NEXT_PUBLIC_API_URL for FE (default: http://localhost:4000)
  3. Push Prisma schema: npm run db:push
  4. Start development: npm run dev

Minimal, local-first setup. See code for details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages