https://github.com/cdeil/web-experiments
Playground for web pages and apps for gamma-ray data
https://github.com/cdeil/web-experiments
Last synced: about 1 year ago
JSON representation
Playground for web pages and apps for gamma-ray data
- Host: GitHub
- URL: https://github.com/cdeil/web-experiments
- Owner: cdeil
- License: mit
- Created: 2016-02-06T13:23:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-25T04:13:44.000Z (about 10 years ago)
- Last Synced: 2025-02-08T16:38:15.926Z (over 1 year ago)
- Language: JavaScript
- Homepage: http://gammapy.github.io/web-experiments/
- Size: 5.39 MB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Web Experiments
## Prerequisites
* Node.js version 0.10.0 or newer
* Install jspm, eslint, gulp globally
```
npm install -g jspm
npm install -g eslint
npm install -g gulp
```
## Installation
To run locally for development.
1. run `npm install`
2. run `jspm install`
## Running
1. Start a local server, e.g. `python -m SimpleHTTPServer`
2. Incase you want auto reload install live-server `npm install -g live-server` and run `live-server ./`
## Deploying
To bundle the web app
1. run `gulp bundle`, to bundle the app into build folder
2. Either serve `build` folder locally.
3. Or deploy it to gh-pages by running `gulp deploy`.
### Directory Structure
```
├─── .publish
├─── app/
│ ├─── components/
│ │ ├─── response/
│ │ └───
│ ├─── App.js
│ ├─── index.js
│ └───
├─── build/
├─── data/
├─── fit_dump.py
├─── Gulpfile.babel.js
├─── index.html
└─── README.md
```
## .publish
This directory is used by gh-pages plugin to temporarily store data and publish to gh-pages branch of github.
## app
This is where the entire application logic resides.
## build
This directory contains the minfied source code for production deployment.
## data
This is where JSON files will be stored for reading.