- https://arsalan.live/
- Follow
Origin HealthLink
An admin dashboard with
-
Backend:
- Golang
- Gin Framework
-
Frontend:
- React
- Tailwind CSS
Describe the high-level structure of the project, such as the directory organization for both backend and frontend components.
.
├── backend
│ ├── controllers
│ ├── disk
│ ├── dto
│ ├── go.mod
│ ├── go.sum
│ ├── main.go
│ ├── middleware
│ ├── models
│ ├── sketch.txt
│ └── storage
├── frontend
│ ├── LICENSE
│ ├── node_modules
│ ├── package.json
│ ├── package-lock.json
│ ├── postcss.config.js
│ ├── public
│ ├── src
│ └── tailwind.config.js
└── readme.md
- Install Golang
- Install gin : go get -u github.com/gin-gonic/gin
- cd img-dash/backend
- PORT=8080
- run go mod tidy
- go run main.go
- Install Node.js and npm
- Navigate to the frontend directory : cd img-dash/frontend
- install dependencies : npm install
- run npm run start
- Visit http://localhost:3000.
- Change
pathvariable infrontend/service/*to your machine IP on which it is hosting frontend - Change
pathvariable inbackend/controller/adminController.goto your machine IP on which it is hosting backend
- cd
./frontend - run
npm build - run
npm run start
- cd
./backend - run
go run main.go