- TypeScript 50.4%
- PowerShell 18.5%
- Shell 17.4%
- CSS 6%
- JavaScript 5%
- Other 2.7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .forgejo/workflows | ||
| dashboard | ||
| scripts | ||
| .dockerignore | ||
| .env.example | ||
| .gitattributes | ||
| .gitignore | ||
| docker-compose.yml | ||
| Dockerfile | ||
| LICENSE | ||
| nginx.conf | ||
| README.md | ||
| VERSION | ||
Overview
A fully functional and scalable dashboard starter solution for saas and businesess in general
Quick Start — Self-Hosted Deployment
Production install/update/uninstall is fully scripted. One command, no manual
npm install / docker build / nginx config needed.
Windows:
.\scripts\windows\install.ps1
Linux:
./scripts/linux/install.sh
This auto-detects Docker; if Docker isn't usable it falls back to a native Node.js static-serve deployment. Force one explicitly:
.\scripts\windows\install.ps1 -Mode docker
.\scripts\windows\install.ps1 -Mode native
./scripts/linux/install.sh --mode docker
./scripts/linux/install.sh --mode native
Update and uninstall:
.\scripts\windows\update.ps1
.\scripts\windows\uninstall.ps1
./scripts/linux/update.sh
./scripts/linux/uninstall.sh
Architecture
Browser
|
v
Nginx container (or native Node static server, see below)
| serves the built SPA (dashboard/dist)
v
https://reqres.in/api <- called directly from the browser, no backend/proxy
There is no backend, no database, and no other service in this repository —
just this static React/Vite SPA. Production always serves the built
app (npm run build output) through Nginx (Docker) or a small static file
server (native) — never vite dev/vite preview.
- Host port:
APP_PORTin the root.env(default8080) →http://localhost:APP_PORT. - Frontend API target:
VITE_API_BASE_URLin the root.env— the single environment file used for Docker, the install/update scripts, andnpm run dev(dashboard/vite.config.tspoints itsenvDirback at this file, and the Docker build copies it into the image) — defaults tohttps://reqres.in/api. Like allVITE_*variables it's inlined at build time, not read at container start. install/updatenever overwrite an existing.env; only new keys get added, with your existing values left alone.
Full details (Docker/Nginx internals, ports, every environment variable,
VERSION, native mode, troubleshooting) live in
dashboard/README.md.
Login Credentials
NOTE: Use this username and password to Login!
- Username:
iqvdashboard - Password:
2018
features
- customizable UI using
TailwindcssandAnt Design. - Single page application using
React Router. - Mock API request using
reqres. - Powerful layout and table using
@ant-design/pro-components. - Code splitting and lazy loading component using
@loadable/component. - State management using
react-reduxand@reduxjs/toolkit. - Persistent redux state using
redux-persist. - Loading progress bar using
nprogress. ESLintandPrettierenabled.- Option to enable Progressive Web App (PWA). (Only available in production build)
- Axios interceptor enabled to handle API authorization.
- Automated workflow for checking new Pull Request.
Usage (local development)
-
Clone the project and change directory.
git clone https://github.com/iBz-04/Dashboard-starter.git cd Dashboard-starter -
Install dependencies.
npmis this repo's canonical package manager (seedashboard/README.mdfor why).cd dashboard npm install -
Create your environment file.
ReqRes now requires a free API key for all
/api/*requests.- Get a key from app.reqres.in/api-keys
- Copy
.env.exampleto.env - Paste your key into
VITE_REQRES_API_KEY
cp .env.example .env -
Run dev server.
npm run dev -
Then, visit
http://localhost:5173
Feedback
If you have any feedback, please reach out to us ibz.04dev@gmail.com