-
Frontend:
- React
- TypeScript
- Next.js
- Tailwind CSS
- ChartJs
- react-chartjs
- Shadcn
- Lucide icons
- Next themes
-
Data:
- COVID-19 API
-
Deployment:
- Vercel
npm install
# or
yarn install
# or
pnpm install
# or
bun install
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result or access PROD on https://covid-stats-arbaaz-mowlabucus-projects.vercel.app/en
- Real-time COVID-19 statistics
- Interactive charts and graphs
- Responsive design
- Multi-language support
I started the project with a standard nextjs template and added some basic UI from shadcn to help things go faster and to have a nice theme ongoing (I chose shadcn because they use next-themes for their themeing which i'm familliar with.). I also chose next-intl as a trans lib, because of it's flexibility on server/client components ⛷️.
I just went the basic fetch route for this one, it was mostly fetches so I didn't try complexify things and i wanted to focus more on chartJS. A big tradeoff 🥲 here was error handling, which I left for last but didn't really got time to implement.
Big focus of the project 🤞 For chart js i used the main library for thr barchart and piecharts with my own custom component, but I did use react-chart2js lib for the line chart for experimentation.