Giter VIP home page Giter VIP logo

weather-10kb's Introduction

Weather forecast in under 10kb (excluding favicons) without any client side javascript.

Run wxkb.io locally

  1. Install node.js
  • if you have homebrew, brew install node
  1. clone repo via terminal: git clone https://github.com/JulianNorton/weather-10kb.git
  2. cd into the weather-10kb folder: cd weather-10kb
  3. install required packages: npm install
  4. Sign up for a dark sky API key
  5. Turn on local version: DARK_SKY_API_KEY=<key> node index.js
  • Replace <key> with whatever your API key is
  • † Google api key will increase rate limit for the npm package node-geocoder
    • may require google api key, see: JulianNorton#62
    • DARK_SKY_API_KEY=<key> GOOGLE_API_KEY=<key> node index.js to run it locally with the google key
  • Ignore opbeat "isn't correctly configured", that's used only for wxkb.io production logging
  1. go to http://localhost:5000
  • It should show an error when loaded "Error: Unable to determine location based on IP address.", that's normal!
  1. Submit any bugs, questions, or ideas you have!

Modify & Compile CSS

  • styles-compiler.scss compiles into main.css using node-sass
  • npm run watch-css Automatically compiles css whenever there's a change to the .scss
  • npm run build-css If you want to compile css once
  • npm rebuild node-sass if you're switching branches a lot this can fix node-sass crashes.

Please fork, modify, and use this project!

Open source, General Public License v2. Basically do whatever you want with it. Pull requests must keep these tenants in mind:

Accessibility (a11y)

Browser compatibility

Performance

Misc

weather-10kb's People

Contributors

alxlark avatar atanasg avatar blanyal avatar bratcat avatar chiragmittal19 avatar cmeyer90 avatar codemacabre avatar cshu avatar danhannigan avatar eliashussary avatar josephfusco avatar jotasprout avatar juliannorton avatar kazoni avatar lakston avatar modelm avatar ryanwr avatar satiewaltz avatar themaxsandelin avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.