Eneo is a white-label home energy management system (HEMS) for SME energy suppliers and solar installers.
The product seeks to make energy markets more accessible to both prosumers and consumers through intelligent energy services, including smart control over consumption, storage and production of energy, as well as energy arbitrage.
.
├── app/
│ ├── auth/
│ │ ├── login
│ │ └── signup
│ ├── dashboard/
│ │ ├── awattar price chart
│ │ ├── awattar energy cost chart
│ │ ├── enode solar chart
│ │ ├── enode ev chart
│ │ ├── enode battery chart
│ │ └── combine-chart/
│ │ └── line bar chart
│ └── api/
│ ├── awattar
│ └── enode
├── components/
│ └── ui and common components
├── config/
│ └── page settings config
├── context/
│ └── use context
├── helpers/
│ └── utility check window and screen size
├── hooks/
│ └── react hooks
├── lib/
│ ├── constant
│ ├── fonts
│ ├── theme: flowbite custom theme
│ └── utils
├── type/
│ └── interface
├── utils/
│ ├── enode/
│ │ └── oauth-sandbox
│ └── supabase/
│ ├── client
│ ├── middleware
│ └── server
└── middleware
-
flowbite
-
flowbite-react
-
react-icons
-
tailwindcss
-
supabase
-
react-hot-toast
-
react-apexcharts
-
apexcharts
- Quality of life tools, like
-
eslint
with some plugins -
tailwind-merge
-
Next.js
requires Node.js
.
Install the dependencies:
npm i
Now you can run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
.env.local
REACT_EDITOR=webstorm
# SUPABASE
NEXT_PUBLIC_SUPABASE_URL=https://zrsxsvsllzalhdnppvoo.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inpyc3hzdnNsbHphbGhkbnBwdm9vIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MTIxMzUyMzQsImV4cCI6MjAyNzcxMTIzNH0.P2ALCgZe7-rR6eYjcDMUm0IFc7U5TloAyy56kRYRCjk
# ENODE
### CODELEAP
NEXT_PUBLIC_ENODE_CLIENT_ID=3887f3ad-ad95-4186-83fc-462b50fb55a1
NEXT_PUBLIC_ENODE_CLIENT_SECRET=7a745c7c89ff116f6c3d2398c631d46d0daad415
NEXT_PUBLIC_ENODE_API_USERS_URL=https://enode-api.sandbox.enode.io/users/2
### OAUTH
NEXT_PUBLIC_ENODE_OAUTH_TOKEN_URL=https://oauth.sandbox.enode.io/oauth2/token
### Apis
NEXT_PUBLIC_ENODE_API_URL=https://enode-api.sandbox.enode.io
# AWATTAR
### Apis
NEXT_PUBLIC_AWATTAR_API_URL=https://api.awattar.de/v1/marketdata
- Node.js (^18)
Flowbite is an open source collection of UI components built with the utility classes from Tailwind CSS that you can use as a starting point when coding user interfaces and websites.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
About supabase
- Server-side auth: https://supabase.com/docs/guides/auth/server-side/nextjs
About enode
- Enode: https://www.enode.com/
- Dev: https://developers.enode.com/dashboard
- API: https://developers.enode.com/api/reference#introduction
- Docs: https://developers.enode.com/docs/getting-started