Skip to content

This is the frontend of the saifurl service, my shorturls service.

License

Notifications You must be signed in to change notification settings

saif-abdelrazek/saifurl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1665d32Β Β·Β Β· Sep 18, 2025

History

31 Commits
Jun 15, 2025
Sep 18, 2025
Jun 27, 2025
Aug 20, 2025
Jul 1, 2025
Sep 18, 2025
Jun 15, 2025
Aug 6, 2025
Jul 11, 2025
Jul 11, 2025
Jun 15, 2025

Repository files navigation

SaifURL Frontend

A modern, fullstack URL shortener frontend built with React, featuring user authentication, dashboard, custom domains, and more.


Features

  • πŸ”— Shorten URLs with custom aliases and multiple domains
  • πŸ‘€ User authentication (sign up, sign in, password reset)
  • 🏠 Dashboard to manage your short URLs
  • πŸ“Š Click tracking for each short URL
  • 🎨 Light/Dark theme support
  • πŸ›‘οΈ Email verification for secure accounts
  • πŸ› οΈ Profile management (update info, change password)
  • 🌐 HashRouter for static hosting compatibility

Getting Started

1. Clone the repository

git clone https://github.com/saif-abdelrazek/saifurl.git

cd saifurl

2. Install dependencies

npm install

3. Set environment variables

Create a .env file if you want to override the default API URL:

VITE_API_URL=https://api.saifabdelrazek.com/v1

4. Run the app

npm run dev

The app will be available at http://localhost:5173 (or your Vite dev port).


Project Structure

src/
  components/         # Reusable UI components
  contexts/           # React context providers (Dashboard, Shorturls)
  pages/              # Main pages (Dashboard, Profile, Auth, etc.)
  routers/            # Main router and route utilities
  App.jsx             # App entry point
  main.jsx            # ReactDOM entry
entry

Usage

  • Sign up and verify your email.
  • Sign in to access your dashboard.
  • Create, edit, and delete short URLs.
  • Copy short URLs with one click.
  • Switch themes using the toggle in the header or profile.
  • Manage your profile and change your password.
  • Reset your password via the "Forget Password" page.

API

This frontend connects to the SaifAPI backend service.


Deployment

  • The app uses HashRouter for static hosting (e.g., Netlify, Vercel, GitHub Pages).
  • Make sure your backend API is accessible at the URL set in VITE_API_URL.

Credits


About

This is the frontend of the saifurl service, my shorturls service.

Topics

Resources

License

Stars

Watchers

Forks

Languages