Skip to content

A URL shortener using Next.js 14 server actions, Postgres or SurrealDB, Shadcn/ui, and Tailwind.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-Apache
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

NexVeridian/next-url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

next-url-shortener

A URL shortener using Next.js 14 server actions, Postgres or SurrealDB, Shadcn/ui and Tailwind.

Install

Copy one

Create data folder next to docker-compose.yml and .env, and set the data type in .env

├── data
│	├── postgres
│   └── surrealdb
├── Makefile
├── docker-compose-postgres.yml
└── .env

Then run:

  • make up-postgres
  • make up-surrealdb

Then exit with:

  • make down-postgres
  • make down-surrealdb

Example .env

# postgres or surrealdb
DB_TYPE=postgres

# For surrealdb: If using docker surrealdb:8000, if not use 0.0.0.0:8000
# For postgres: If using docker postgres:5432, if not use 0.0.0.0:5432
DB_URL_PORT=postgres:5432

# postgres
POSTGRES_USER=root
POSTGRES_PASSWORD=root
POSTGRES_DB=url

# surrealdb 
DB_USER=root
DB_PASSWORD=root

# Enter your website url here
# OVERRIDE_URL=s.nexv.dev

License

All code in this repository is dual-licensed under either License-MIT or LICENSE-APACHE at your option. This means you can select the license you prefer. Why dual license

About

A URL shortener using Next.js 14 server actions, Postgres or SurrealDB, Shadcn/ui, and Tailwind.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-Apache
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages