An open API service indexing awesome lists of open source software.

https://github.com/sudo-self/jessejesse.xyz

pnpm i && pnpm run build
https://github.com/sudo-self/jessejesse.xyz

Last synced: 9 months ago
JSON representation

pnpm i && pnpm run build

Awesome Lists containing this project

README

          

### [JesseJesse.com](https://JesseJesse.com)

A personal website made with nextJS Tailwind Firebase Vercel and Cloudflare DNS

Screenshot 2024-09-10 at 2 09 16 PM

#### install

`git clone https://github.com/sudo-self/JesseJesse.xyz.git`

`cd JesseJesse.xyz`

`pmpm i`

`pnpm run dev`

localhost:3000

see `env.example`

Firebase Guestbook Rules Example


```
{
"rules": {
".read": true,
".write": "auth != null"
}
}
```

Github OAuth Firebase Redirect URI


```
https://.firebaseapp.com/__/auth/handler

```
pnpm i react-dom-confetti

```
const triggerConfetti = () => {
setConfettiActive(true);
setTimeout(() => {
setConfettiActive(false);
}, 4000);
}

```

Display Current Time JSX

```
const getCurrentTime = () => {
const now = new Date();
const hours = now.getHours().toString().padStart(2, '0');
const minutes = now.getMinutes().toString().padStart(2, '0');
return `${hours}:${minutes}`;
};

const [currentTime, setCurrentTime] = useState(getCurrentTime());
```

incriment page view count +1

```
const incrementViewCount = async () => {
try {
const countRef = firebase.database().ref("viewCount");
await countRef.transaction((currentCount) => {
return (currentCount || 0) + 1;
});
} catch (error) {
console.error("Error incrementing view count:", error);
}
};
```
Firebase console --> Auth --> Settings --> Authorized domains --> (yourdomain.xyz)