mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-29 12:10:22 +02:00
Update postgresql roadmap
This commit is contained in:
@@ -30,12 +30,12 @@ const starCount = await getFormattedStars('kamranahmedse/developer-roadmap');
|
|||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a
|
<a
|
||||||
href='https://discord.gg/cJpEt5Qbwa'
|
href="https://discord.gg/cJpEt5Qbwa"
|
||||||
target='_blank'
|
target='_blank'
|
||||||
class='relative pointer inline-flex items-center border border-black py-1.5 px-3 rounded-lg text-sm hover:text-white hover:bg-black bg-white group'
|
class='relative pointer inline-flex items-center border border-black py-1.5 px-3 rounded-lg text-sm hover:text-white hover:bg-black bg-white group'
|
||||||
>
|
>
|
||||||
<Icon icon='discord' class='h-[14px] mr-2 -ml-1 fill-current' />
|
<Icon icon='discord' class='h-[14px] mr-2 -ml-1 fill-current' />
|
||||||
Join on Discord <span class="rounded-sm ml-0.5 px-1.5 py-0.5 text-xs uppercase">/ New</span>
|
Join on Discord
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -41,6 +41,7 @@ seo:
|
|||||||
- 'mongodb quiz'
|
- 'mongodb quiz'
|
||||||
- 'mongodb interview questions'
|
- 'mongodb interview questions'
|
||||||
relatedRoadmaps:
|
relatedRoadmaps:
|
||||||
|
- 'postgresql-dba'
|
||||||
- 'backend'
|
- 'backend'
|
||||||
- 'nodejs'
|
- 'nodejs'
|
||||||
- 'system-design'
|
- 'system-design'
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
jsonUrl: '/jsons/roadmaps/postgresql-dba.json'
|
jsonUrl: '/jsons/roadmaps/postgresql-dba.json'
|
||||||
pdfUrl: '/pdfs/roadmaps/postgresql-dba.pdf'
|
pdfUrl: '/pdfs/roadmaps/postgresql-dba.pdf'
|
||||||
order: 5
|
order: 5
|
||||||
briefTitle: 'DBA'
|
briefTitle: 'PostgreSQL'
|
||||||
briefDescription: 'Step by step guide to become a PostgreSQL DBA in 2023'
|
briefDescription: 'Step by step guide to become a PostgreSQL DBA in 2023'
|
||||||
title: 'PostgreSQL DBA'
|
title: 'PostgreSQL DBA'
|
||||||
description: 'Step by step guide to becoming a modern PostgreSQL DB Administrator in 2023'
|
description: 'Step by step guide to becoming a modern PostgreSQL DB Administrator in 2023'
|
||||||
@@ -33,6 +33,7 @@ seo:
|
|||||||
- 'database administrator quiz'
|
- 'database administrator quiz'
|
||||||
- 'dba interview questions'
|
- 'dba interview questions'
|
||||||
relatedRoadmaps:
|
relatedRoadmaps:
|
||||||
|
- 'mongodb'
|
||||||
- 'backend'
|
- 'backend'
|
||||||
- 'devops'
|
- 'devops'
|
||||||
sitemap:
|
sitemap:
|
||||||
|
23
src/lib/discord.ts
Normal file
23
src/lib/discord.ts
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
const formatter = Intl.NumberFormat('en-US', {
|
||||||
|
notation: 'compact',
|
||||||
|
});
|
||||||
|
|
||||||
|
export async function getDiscordInfo(): Promise<{
|
||||||
|
url: string;
|
||||||
|
total: number;
|
||||||
|
totalFormatted: string;
|
||||||
|
online: number;
|
||||||
|
onlineFormatted: string;
|
||||||
|
}> {
|
||||||
|
const response = await fetch(
|
||||||
|
'https://discord.com/api/v9/invites/cJpEt5Qbwa?with_counts=true'
|
||||||
|
);
|
||||||
|
const json = await response.json();
|
||||||
|
return {
|
||||||
|
url: `https://discord.gg/${json.code}`,
|
||||||
|
total: json.approximate_member_count,
|
||||||
|
totalFormatted: formatter.format(json.approximate_member_count),
|
||||||
|
online: json.approximate_presence_count,
|
||||||
|
onlineFormatted: formatter.format(json.approximate_presence_count),
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user