Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
3f1fd6c6
Unverified
Commit
3f1fd6c6
authored
Feb 01, 2019
by
Torkel Ödegaard
Committed by
GitHub
Feb 01, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15193 from w4tsn/patch-1
Clearify the Run from master instructions
parents
116e7074
ab1ae1b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
15 deletions
+37
-15
README.md
+37
-15
No files found.
README.md
View file @
3f1fd6c6
...
@@ -25,49 +25,71 @@ the latest master builds [here](https://grafana.com/grafana/download)
...
@@ -25,49 +25,71 @@ the latest master builds [here](https://grafana.com/grafana/download)
### Dependencies
### Dependencies
-
Go (Latest Stable)
-
Go (Latest Stable)
-
bra
[
`go get github.com/Unknwon/bra`
]
-
Node.js LTS
-
Node.js LTS
-
yarn
[
`npm install -g yarn`
]
### Get the project
**The project located in the go-path will be your working directory.**
### Building the backend
```
bash
```
bash
go get github.com/grafana/grafana
go get github.com/grafana/grafana
cd
$GOPATH
/src/github.com/grafana/grafana
cd
$GOPATH
/src/github.com/grafana/grafana
```
### Building
#### The backend
```
bash
go run build.go setup
go run build.go setup
go run build.go build
go run build.go build
```
```
###
Building f
rontend assets
###
# F
rontend assets
For this you need Node.js (LTS version).
*For this you need Node.js (LTS version).*
To build the assets, rebuild on file change, and serve them by Grafana's webserver (http://localhost:3000):
```
bash
```
bash
npm install
-g
yarn
yarn install
--pure-lockfile
yarn install
--pure-lockfile
```
### Run and rebuild on source change
#### Backend
To run the backend and rebuild on source change:
```
bash
$GOPATH
/bin/bra run
```
#### Frontend
Rebuild on file change, and serve them by Grafana's webserver (http://localhost:3000):
```
bash
yarn watch
yarn watch
```
```
Build the assets, rebuild on file change with Hot Module Replacement (HMR), and serve them by webpack-dev-server (http://localhost:3333):
Build the assets, rebuild on file change with Hot Module Replacement (HMR), and serve them by webpack-dev-server (http://localhost:3333):
```
bash
```
bash
yarn start
yarn start
# OR set a theme
# OR set a theme
env
GRAFANA_THEME
=
light yarn start
env
GRAFANA_THEME
=
light yarn start
```
```
Note: HMR for Angular is not supported. If you edit files in the Angular part of the app, the whole page will reload.
Run tests
*Note: HMR for Angular is not supported. If you edit files in the Angular part of the app, the whole page will reload.*
```
bash
yarn jest
```
### Recompile backend on source change
Run tests and rebuild on source change:
To rebuild on source change.
```
bash
```
bash
go get github.com/Unknwon/bra
yarn jest
bra run
```
```
Open grafana in your browser (default:
`http://localhost:3000`
) and login with admin user (default:
`user/pass = admin/admin`
).
**Open grafana in your browser (default: e.g. `http://localhost:3000`) and login with admin user (default: `user/pass = admin/admin`).**
### Building a Docker image
### Building a Docker image
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment