Update postgresql roadmap

pull/3832/head
Kamran Ahmed 2 years ago
parent 855ba7bbfb
commit e2062aefe9
  1. 4
      src/components/OpenSourceBanner.astro
  2. 1
      src/data/roadmaps/mongodb/mongodb.md
  3. 3
      src/data/roadmaps/postgresql-dba/postgresql-dba.md
  4. 23
      src/lib/discord.ts

@ -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:

@ -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…
Cancel
Save