Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peterdee/moleculer-metaweather
A Moleculer-based microservice that pulls information from the MetaWeather
https://github.com/peterdee/moleculer-metaweather
micorservice moleculer nodejs
Last synced: 14 days ago
JSON representation
A Moleculer-based microservice that pulls information from the MetaWeather
- Host: GitHub
- URL: https://github.com/peterdee/moleculer-metaweather
- Owner: peterdee
- Created: 2020-04-16T14:28:01.000Z (almost 5 years ago)
- Default Branch: stage
- Last Pushed: 2020-06-24T14:12:53.000Z (over 4 years ago)
- Last Synced: 2024-11-20T14:51:01.406Z (3 months ago)
- Topics: micorservice, moleculer, nodejs
- Language: JavaScript
- Homepage: https://moleculer-metaweather.herokuapp.com
- Size: 224 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## moleculer-metaweather
[![Known Vulnerabilities](https://snyk.io/test/github/peterdee/moleculer-metaweather/badge.svg?targetFile=package.json)](https://snyk.io/test/github/peterdee/moleculer-metaweather?targetFile=package.json)
A Moleculer-based microservice that pulls information from the [MetaWeather](https://www.metaweather.com/api/).
Generated with the [Moleculer CLI](https://moleculer.services/docs/0.14/moleculer-cli.html).
Stack: [Node](https://nodejs.org/), [Moleculer](https://moleculer.services/).
More information: https://www.youtube.com/watch?v=t4YR6MWrugw
DEV: http://localhost:5544
STAGE: https://moleculer-metaweather.herokuapp.com
### Deploy
```shell script
git clone https://github.com/peterdee/moleculer-metaweather.git
cd ./moleculer-metaweather
nvm use 14.4.0
npm i
```### Environment variables
The `.env` file is required. See the [.env.example](.env.example) for more details.
### Launch
This will launch the services locally:
```shell script
npm run dev
```Services will be available at http://localhost:5544 (you can change the `port` in the `.env` file).
### Build
[Docker](https://www.docker.com/) and [Docker-Compose](https://docs.docker.com/compose/) are required for the build.
Build and run the containers:
```shell script
npm run dc:up
```Services will be available at http://localhost:3000 (see the [`docker-compose.yml`](docker-compose.yml) file for details).
Stop containers:
```shell script
npm run dc:down
```### Heroku
The `staging` branch is deployed to Heroku automatically.
### Authentication
See the [AUTHENTICATION.md](AUTHENTICATION.md) for more information about the microservice authentication.
### APIs
See the [APIS.md](APIS.md) for more information about the available APIs.