项目
在 GitHub 查看
JohnMwendwa/nextjs-dashboard
关于
An admin dashboard built with Next.js and Tailwind css
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文🚀 Next.js Admin Dashboard
An admin dashboard built using Next.js framework and Tailwind CSS
🛠️ How to Run This Project
📋 Prerequisites
🌐 Environment Variables
Create a .env file in the root of your project and add the following environment variables:
// Postgress Database
POSTGRES_URL=
POSTGRES_PRISMA_URL=
POSTGRES_URL_NON_POOLING=
POSTGRES_USER=
POSTGRES_HOST=
POSTGRES_PASSWORD=
POSTGRES_DATABASE=
// Auth
AUTH_SECRET=
AUTH_URL=http://localhost:3000
🗄️ Setting up your vercel Postgres database
- Deploy your project to vercel or visit Next.js deployment documentation for step by step guide
- Navigate to the
Storagetab once your project is deployed - Select Create Database and choose Postgres and click Continue.
- Choose your region and storage plan, if required
- Once connected, navigate to the
.env.localtab, click Show secret and Copy Snippet. Make sure you reveal the secrets before copying them. - Navigate to your code editor and rename the
.env.examplefile to.env.Paste in the copied contents from Vercel.
🌱 Seeding the database
Now that your database has been created, let's seed it with some initial data.
To seed your database, run the following command
npm run seed
🚀 Start your local server
To start your local server, run the following command:
npm run dev
🔑 Default Account Credentials
Once you've seeded your database with the initial data, the default login creadentials are:
Email: [email protected]
Password: 123456
💡 Pro Tip
"Great dashboards are built with great attention to detail. Keep iterating and improving!"
🤝 Contributing
I welcome all kinds of contributions! Feel free to open issues or submit pull requests.
探索相关项目
加载中…