An open API service indexing awesome lists of open source software.

https://github.com/yeukfei02/weatherapi

weatherApi by openweathermap
https://github.com/yeukfei02/weatherapi

docker javascript mongodb nodejs openweathermap weather weatherapi

Last synced: 13 days ago
JSON representation

weatherApi by openweathermap

Awesome Lists containing this project

README

          

# weatherApi

[![codecov](https://codecov.io/gh/yeukfei02/weatherApi/branch/master/graph/badge.svg)](https://codecov.io/gh/yeukfei02/weatherApi)

weatherApi by openweathermap

documentation:

## Requirement

- install yarn
- install node (v12+)
- install mongodb

## Testing and run

```zsh
$ yarn

// development
$ yarn run dev

// production
$ yarn run start

// run test case
$ yarn run test

// use eslint and prettier to format code
$ yarn run lint
```

## Docker

```zsh
// build images and start container in one line
docker-compose up -d --build

// go inside container
docker exec -it /bin/bash

// check container logs
docker logs

// remove and stop container
docker-compose down
```

open localhost:3000

## Contributing

Please refer to [CONTRIBUTING.md](https://github.com/yeukfei02/weatherApi/blob/master/CONTRIBUTING.md)