Skip to content

Instantly share code, notes, and snippets.

View Ronin1702's full-sized avatar

KodeBear Ronin1702

View GitHub Profile
@Ronin1702
Ronin1702 / vite-gh-pages.md
Last active September 26, 2023 12:47
Deploy Vite App to GitHub Pages

Static Deployment From Vite to GH Pages

Configure vite.config.js and package.json file.

  1. Go to your vite.config.js file. And add your base url to it.
  • c88yz7o768blhaipaioy
  • If your repo name is Kool-Vite, then your bsae URL is /Kool-Vite/.
  1. Go to your root package.json file. Add homepage and deploy scripts. ```json "homepage": "https://yourGitHubUserName.github.io/repoName/",
@Ronin1702
Ronin1702 / AccessingLocalhostfromiPhone.md
Last active May 28, 2026 19:29
Accessing Localhost from iPhone

Accessing Localhost from iPhone

If you are developing a web application and want to test it on your iPhone, you can access your localhost development server directly from your iPhone. Here's how to do it:

Prerequisites

  • Ensure both your development machine and iPhone are connected to the same local network (e.g., the same WiFi).

1. Find Your Local IP Address

@Ronin1702
Ronin1702 / Environment_Variables_Frontend_vs_Backend.md
Created October 29, 2023 13:03
Environment Variables in Frontend vs Backend

Environment Variables in Frontend vs Backend

Environment variables are a way to store configuration settings for your applications. They are key-value pairs that are outside of the application code. Although environment variables work in a similar fashion in both frontend and backend applications, there are some specific considerations for each.

Table of Contents

  1. Backend Environment Variables