mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-03-15 12:49:43 +01:00
Update postgresql roadmap
This commit is contained in:
parent
855ba7bbfb
commit
e2062aefe9
@ -30,12 +30,12 @@ const starCount = await getFormattedStars('kamranahmedse/developer-roadmap');
|
||||
</a>
|
||||
|
||||
<a
|
||||
href='https://discord.gg/cJpEt5Qbwa'
|
||||
href="https://discord.gg/cJpEt5Qbwa"
|
||||
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'
|
||||
>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -41,6 +41,7 @@ seo:
|
||||
- 'mongodb quiz'
|
||||
- 'mongodb interview questions'
|
||||
relatedRoadmaps:
|
||||
- 'postgresql-dba'
|
||||
- 'backend'
|
||||
- 'nodejs'
|
||||
- 'system-design'
|
||||
|
@ -2,7 +2,7 @@
|
||||
jsonUrl: '/jsons/roadmaps/postgresql-dba.json'
|
||||
pdfUrl: '/pdfs/roadmaps/postgresql-dba.pdf'
|
||||
order: 5
|
||||
briefTitle: 'DBA'
|
||||
briefTitle: 'PostgreSQL'
|
||||
briefDescription: 'Step by step guide to become a PostgreSQL DBA in 2023'
|
||||
title: 'PostgreSQL DBA'
|
||||
description: 'Step by step guide to becoming a modern PostgreSQL DB Administrator in 2023'
|
||||
@ -33,6 +33,7 @@ seo:
|
||||
- 'database administrator quiz'
|
||||
- 'dba interview questions'
|
||||
relatedRoadmaps:
|
||||
- 'mongodb'
|
||||
- 'backend'
|
||||
- 'devops'
|
||||
sitemap:
|
||||
@ -251,4 +252,4 @@ Get involved to Postgres community and contribute to Postgres; be a useful membe
|
||||
- pgsql-hackers
|
||||
- pgsql-bugs
|
||||
- Reviewing patches
|
||||
- Writing patches, attending in [Commitfests](https://commitfest.postgresql.org/)
|
||||
- Writing patches, attending in [Commitfests](https://commitfest.postgresql.org/)
|
||||
|
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),
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user