Weatherscan/README.md

21 lines
1.1 KiB
Markdown
Raw Normal View History

2018-09-19 18:49:07 +00:00
# Weatherscan Simulator
Weatherscan simulation in HTML/JS/CSS
2021-03-23 15:06:43 +00:00
Remade with Openweathermaps api
2018-09-19 18:49:07 +00:00
2018-09-19 21:54:04 +00:00
## Running locally
2021-08-05 16:37:19 +00:00
1. Create OpenWeatherMaps (https://home.openweathermap.org/api_keys) and Mapbox (https://account.mapbox.com/) API keys.
2021-03-24 03:47:21 +00:00
2. Go to `webroot/js/groupull.js`, search for and replace `putapikeyhere` with your OpenWeatherMaps API key.
2021-03-25 00:11:46 +00:00
3. Go to `webroot/js/location.js`, search for and replace `putapikeyhere` with your OpenWeatherMapsApi key.
2021-03-25 00:11:21 +00:00
4. Go to `webroot/js/radar.js`, search for and replace `putapikeyhere` with your Mapbox API key.
5. Download & Install [node.js LTS](https://nodejs.org/en/)
6. In terminal, run `npm install --production` in the root folder of this project. This will install any dependencies.
7. In terminal, run `npm start` in the root folder of this project. This will start a local web server.
8. Follow the link in the console output.
2018-09-19 21:54:04 +00:00
2018-09-19 18:49:07 +00:00
## Development
This project uses gulp to compile SASS to CSS.
1. Download & Install [node.js LTS](https://nodejs.org/en/)
2. Run `npm install gulp-cli -g`
2018-09-19 22:38:07 +00:00
2. Run `npm install` in the root folder of this project.
2018-09-19 18:49:07 +00:00
3. Run `gulp` or `gulp watch` in the root directory to compile.