mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 15:56:56 +00:00
Compare commits
4 Commits
fb3cb2eb69
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 38a75440a5 | |||
| bea9b13249 | |||
| 84445f16b3 | |||
| fce0b5b539 |
+3
-3
@@ -3,7 +3,7 @@ DB_NAME=piku_test_db
|
|||||||
DB_USER=test
|
DB_USER=test
|
||||||
DB_PASSWORD=password123
|
DB_PASSWORD=password123
|
||||||
DB_HOST=127.0.0.1
|
DB_HOST=127.0.0.1
|
||||||
DB_PORT=5433
|
DB_PORT=5443
|
||||||
|
|
||||||
# SSL
|
# SSL
|
||||||
SSL_ENABLED=true
|
SSL_ENABLED=true
|
||||||
@@ -12,7 +12,7 @@ SSL_ENABLED=true
|
|||||||
DEBUG=True
|
DEBUG=True
|
||||||
SECRET_KEY=django-insecure-initial-key
|
SECRET_KEY=django-insecure-initial-key
|
||||||
BACKEND_DOMAIN=127.0.0.1
|
BACKEND_DOMAIN=127.0.0.1
|
||||||
BACKEND_PORT=8001
|
BACKEND_PORT=8101
|
||||||
|
|
||||||
# EMAIL
|
# EMAIL
|
||||||
EMAIL_HOST=127.0.0.1
|
EMAIL_HOST=127.0.0.1
|
||||||
@@ -25,4 +25,4 @@ EMAIL_API_PORT=8026
|
|||||||
# FRONTEND
|
# FRONTEND
|
||||||
FRONTEND_PORT=5199
|
FRONTEND_PORT=5199
|
||||||
FRONTEND_DOMAIN=127.0.0.1
|
FRONTEND_DOMAIN=127.0.0.1
|
||||||
VITE_API_URL=https://127.0.0.1:8001
|
VITE_API_URL=https://127.0.0.1:8101
|
||||||
|
|||||||
+3
-3
@@ -3,7 +3,7 @@ DB_NAME=piku
|
|||||||
DB_USER=user
|
DB_USER=user
|
||||||
DB_PASSWORD=password123
|
DB_PASSWORD=password123
|
||||||
DB_HOST=127.0.0.1
|
DB_HOST=127.0.0.1
|
||||||
DB_PORT=5432
|
DB_PORT=5442
|
||||||
|
|
||||||
# SSL
|
# SSL
|
||||||
SSL_ENABLED=true
|
SSL_ENABLED=true
|
||||||
@@ -13,7 +13,7 @@ S3_ENABLED=false
|
|||||||
DEBUG=True
|
DEBUG=True
|
||||||
SECRET_KEY=django-secret-key
|
SECRET_KEY=django-secret-key
|
||||||
BACKEND_DOMAIN=127.0.0.1
|
BACKEND_DOMAIN=127.0.0.1
|
||||||
BACKEND_PORT=8000
|
BACKEND_PORT=8100
|
||||||
# S3
|
# S3
|
||||||
R2_ACCESS_KEY_ID=
|
R2_ACCESS_KEY_ID=
|
||||||
R2_SECRET_ACCESS_KEY=
|
R2_SECRET_ACCESS_KEY=
|
||||||
@@ -31,4 +31,4 @@ FROM_EMAIL="Pi Ku <no-reply@test.com>"
|
|||||||
# FRONTEND
|
# FRONTEND
|
||||||
FRONTEND_PORT=5173
|
FRONTEND_PORT=5173
|
||||||
FRONTEND_DOMAIN=127.0.0.1
|
FRONTEND_DOMAIN=127.0.0.1
|
||||||
VITE_API_URL=https://127.0.0.1:8000
|
VITE_API_URL=https://127.0.0.1:8100
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
import { lazy, Suspense, useEffect, useRef } from "react";
|
import { lazy, Suspense, useEffect, useRef } from "react";
|
||||||
import { BrowserRouter, Navigate, Route, Routes } from "react-router-dom";
|
import {
|
||||||
|
BrowserRouter,
|
||||||
|
Navigate,
|
||||||
|
Route,
|
||||||
|
Routes,
|
||||||
|
ScrollRestoration,
|
||||||
|
} from "react-router-dom";
|
||||||
import { ProtectedRoute, PublicRoute } from "./components/RouteGuards";
|
import { ProtectedRoute, PublicRoute } from "./components/RouteGuards";
|
||||||
import SplashScreen from "./components/SplashScreen";
|
import SplashScreen from "./components/SplashScreen";
|
||||||
import { ROUTES } from "./config/routes";
|
import { ROUTES } from "./config/routes";
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ export default function Saajan({ message, position = "right" }: SaajanProps) {
|
|||||||
<img
|
<img
|
||||||
src={sf_mini}
|
src={sf_mini}
|
||||||
alt="saajan"
|
alt="saajan"
|
||||||
className={`sepia-20 w-35 -mb-3 ${animate ? "animate-[pulse_.5s_ease_2]" : ""}`}
|
className={`sepia-20 w-35 -mb-6 ${animate ? "animate-[pulse_.5s_ease_2]" : ""}`}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import {
|
|||||||
} from "@phosphor-icons/react";
|
} from "@phosphor-icons/react";
|
||||||
import { ReactLenis } from "lenis/react";
|
import { ReactLenis } from "lenis/react";
|
||||||
import { AnimatePresence, motion, useScroll, useTransform } from "motion/react";
|
import { AnimatePresence, motion, useScroll, useTransform } from "motion/react";
|
||||||
import { useRef, useState } from "react";
|
import { useEffect, useRef, useState } from "react";
|
||||||
import stamp from "../assets/envelope/stamp.png";
|
import stamp from "../assets/envelope/stamp.png";
|
||||||
import Logo from "../components/Logo.tsx";
|
import Logo from "../components/Logo.tsx";
|
||||||
import { Modal } from "../components/ui/Modal";
|
import { Modal } from "../components/ui/Modal";
|
||||||
@@ -47,6 +47,9 @@ function HorizontalScroll({ children }: { children: React.ReactNode }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default function About() {
|
export default function About() {
|
||||||
|
useEffect(() => {
|
||||||
|
window.scrollTo(0, 0);
|
||||||
|
}, []);
|
||||||
return (
|
return (
|
||||||
<ReactLenis root options={{ lerp: 0.1, duration: 1.5, smoothWheel: true }}>
|
<ReactLenis root options={{ lerp: 0.1, duration: 1.5, smoothWheel: true }}>
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
|
|||||||
@@ -285,6 +285,7 @@ export default function Home() {
|
|||||||
"md:opacity-50 hover:opacity-100 btn btn-ghost btn-wide md:btn-xl rounded-full font-extralight md:grayscale hover:grayscale-0 hover:-translate-y-1 transition-all duration-1000"
|
"md:opacity-50 hover:opacity-100 btn btn-ghost btn-wide md:btn-xl rounded-full font-extralight md:grayscale hover:grayscale-0 hover:-translate-y-1 transition-all duration-1000"
|
||||||
}
|
}
|
||||||
type={"button"}
|
type={"button"}
|
||||||
|
onClick={() => navigate(ROUTES.ABOUT, { replace: true })}
|
||||||
>
|
>
|
||||||
<InfoIcon className={"text-primary"} />
|
<InfoIcon className={"text-primary"} />
|
||||||
Tell me More
|
Tell me More
|
||||||
|
|||||||
@@ -1,6 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# Setup Env from examples
|
||||||
|
if [ ! -f ".env" ]; then
|
||||||
|
cp .env.example .env
|
||||||
|
fi
|
||||||
|
if [ ! -f ".env.e2e" ]; then
|
||||||
|
cp .env.e2e.example .env.e2e
|
||||||
|
fi
|
||||||
|
|
||||||
NODE_BIN=$(command -v bun || command -v npm || true)
|
NODE_BIN=$(command -v bun || command -v npm || true)
|
||||||
PY_BIN=$(command -v uv || command -v pip || true)
|
PY_BIN=$(command -v uv || command -v pip || true)
|
||||||
DISTRO_BIN=$(command -v apt || command -v yum || command -v pacman || command -v zypper || true)
|
DISTRO_BIN=$(command -v apt || command -v yum || command -v pacman || command -v zypper || true)
|
||||||
@@ -35,6 +43,8 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Simplify ssl generation for local - source & credits:- https://github.com/FiloSottile/mkcert
|
# Simplify ssl generation for local - source & credits:- https://github.com/FiloSottile/mkcert
|
||||||
|
# Note, still try to perform the setup if pkg setups fail
|
||||||
|
{
|
||||||
echo "[Cert] Setting up SSL..."
|
echo "[Cert] Setting up SSL..."
|
||||||
# pre-requisites (might be available already, just in case)
|
# pre-requisites (might be available already, just in case)
|
||||||
if [ $(basename "$DISTRO_BIN") = "apt" ]; then
|
if [ $(basename "$DISTRO_BIN") = "apt" ]; then
|
||||||
@@ -46,6 +56,7 @@ elif [ $(basename "$DISTRO_BIN") = "pacman" ]; then
|
|||||||
elif [ $(basename "$DISTRO_BIN") = "zypper" ]; then
|
elif [ $(basename "$DISTRO_BIN") = "zypper" ]; then
|
||||||
sudo zypper install -y mozilla-nss-tools
|
sudo zypper install -y mozilla-nss-tools
|
||||||
fi
|
fi
|
||||||
|
} || true
|
||||||
|
|
||||||
# Detect os and arch to get the appropriate bin. Windows: ...NO SOUP FOR YOU!
|
# Detect os and arch to get the appropriate bin. Windows: ...NO SOUP FOR YOU!
|
||||||
OS=$(uname -s)
|
OS=$(uname -s)
|
||||||
|
|||||||
Reference in New Issue
Block a user