This is a small admin dashboard project built with Next.js, Tailwind CSS, NextAuth.js, and Chart.js. The dashboard provides Google authentication functionality using NextAuth.js and features a responsive design built with grid structures.
Desktop | Mobile |
---|---|
Desktop | Mobile |
---|---|
- Google authentication: Users can log in to the dashboard using their Google accounts.
- Responsive design: The dashboard is designed to work smoothly on various devices, adapting to different screen sizes and orientations.
- Chart.js integration: The dashboard includes charts powered by Chart.js to visualize data in a user-friendly manner.
- Next.js: A React framework for building server-rendered applications.
- Tailwind CSS: A utility-first CSS framework for rapidly building custom designs.
- NextAuth.js: An authentication library for Next.js applications.
- Chart.js: A JavaScript library for creating responsive charts.
To get started with the admin dashboard, follow these steps:
-
Clone the repository:
git clone https://github.com/sayshark75/Admin-Dashboard.git
-
Install the dependencies:
cd admin-dashboard npm install
-
Configure environment variables:
Create the
.env.local
file to provide the necessary values for the environment variables. Make sure to set up your Google OAuth credentials. -
Run the development server:
npm run dev
The dashboard will be accessible at http://localhost:3000.
Here's an overview of the project's folder structure:
โโโ public/ # Static assets
โโโ src/ # Next.js pages that define the dashboard's routes
| โโโ components/ # React components used in the dashboard
| โโโ styles/ # CSS styles
| โโโ app/ # Server Components and Routes
| โโโ charts/ # Chart.js configuration and data
โโโ next.config.js # Next.js configuration file
โโโ nextAuth.config.js # Next-Auth configuration.
โโโ tailwind.config.js # Tailwind CSS configuration file
โโโ .env.local # Environment variables (not included in the repository)
โโโ README.md # Project documentation (you are here)
Feel free to adjust the folder structure to match your project's requirements.
Contributions are welcome! If you'd like to contribute to the project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them with descriptive messages.
- Push your changes to your fork.
- Submit a pull request to the
main
branch of the original repository.
This project is licensed under the MIT License.
- The project was built using the Next.js framework.
- The user interface design utilizes Tailwind CSS.
- Authentication is handled by NextAuth.js.
- The charts are created using Chart.js.