Skip to content

AndresMorelos/url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener Service

A full-stack URL shortener application with a NestJS backend and a Next.js frontend.


Table of Contents


Prerequisites

# Generate Private Key and place in backend folder
openssl genpkey -algorithm RSA -out ./backend/jwt-private.key -pkeyopt rsa_keygen_bits:2048

# Extract Public Key and place in backend folder
openssl rsa -pubout -in ./backend/jwt-private.key -out ./backend/jwt-public.key

Project Structure

  • backend/ – NestJS API, Prisma ORM, PostgreSQL
  • frontend/ – Next.js app, Tailwind CSS

Running the Project

Using Docker Compose (Recommended)

This will start the backend, frontend, and a Postgres database:

docker compose up --build

Note: Ensure you have a .env file in backend/ with the required environment variables (see backend/README.md).


Running Backend Separately

See backend/README.md for details on running the backend with or without Docker.


Running Frontend Separately

See frontend/README.md for details on running the frontend with or without Docker.


Subproject Documentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors