Code Monkey home page Code Monkey logo

weer's Introduction

weer

weer is a tiny CLI weather app that is under active development.

It can currently determine your approximate location using your IP address and print a detailed weather forecast (in JSON format) to stdout.

Installation

Docker

Build it yourself

docker build -f Dockerfile.mini -t weer:mini .
docker run --rm weer:mini

Download a pre-built Docker image

docker run --rm heyajulia-docker-weer-docker.bintray.io/weer/weer:mini

Native binaries

I'm working on building native binaries for a number of platforms (macOS, Linux, and โ€” hopefully! โ€” Windows).

Development

Build

  1. Clone the repository (or download a ZIP file)
  2. Install Make, Clang, and cURL.
  3. Run make.

Auto-format code

Run make fmt to automatically format all C source files and headers. This requires clang-format to be installed.

Debugging memory issues

The dev image comes pre-loaded with everything you need to work on weer. I use it to debug memory issues, because Valgrind isn't supported on macOS.

This image is pretty big (~1 GB), and you probably don't need it.

You can download a pre-built image directly from weer's Bintray Docker registry:

docker run --rm -v $PWD:/cwd -it heyajulia-docker-weer-docker.bintray.io/weer/weer:dev bash

or build it yourself:

docker build -f Dockerfile.dev -t weer:dev .
docker run --rm -v $PWD:/cwd -it weer:dev bash

Quick links

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.