Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

moaqz/shortkey

Repository files navigation

Warning

This project is no longer active and will not receive any updates. The code may contain outdated dependencies or vulnerabilities. It is not recommended for use in production environments, though, can be used for learning purposes.

🚀 Environment Configuration

Create a .env file in the root directory of the project. Define the following variables:

# Google Credentials
NUXT_OAUTH_GOOGLE_CLIENT_ID=
NUXT_OAUTH_GOOGLE_CLIENT_SECRET=
NUXT_OAUTH_GOOGLE_REDIRECT_URI=http://localhost:3000/login/google/callback

# Database
NUXT_DATABASE_URL=
NUXT_DATABASE_TOKEN=

# Optional
NUXT_DATABASE_DEBUG=true 
NUXT_SESSION_SECURE_COOKIE=true

Database (required):

Google Credentials (required):

Optional:

  • NUXT_DATABASE_DEBUG: Set to true to enable database debug mode.
  • NUXT_SESSION_SECURE_COOKIE: Set to true to enable secure cookies for sessions.

Warning

Ensure all required environment variables are correctly configured before running the application.

🐳 Run with Docker in seconds

docker run -d --name shortkey -p 3000:3000 --env-file .env moaqz/shortkey:0.1.0

About

🗝 Minimalistic URL Shortener

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published