Download the example or clone the repo:
curl https://github.com/redwine-1/solarenergy.git
cd solarenergyCreate a .env.local file:
touch .env.local
Add following environment variables:
MONGO_URI: mongodb+srv://<username>:<password>@cluster0.gpr5z.mongodb.net/solar
SECRET: secret for password encription
NEXT_PUBLIC_BASE_URL: in local environment http://localhost:3000
Install it and run:
npm install
npm run devor:
Demo 👉 Solar Energy
Go to 👉 https://solarenergy.vercel.app/admin/login to visit admin panel
Use following user name and password:
username: solarenergy@energy.com
password: 12345