Go to file
dependabot[bot] b4e73381b5
Bump qs and express
Bumps [qs](https://github.com/ljharb/qs) to 6.11.0 and updates ancestor dependency [express](https://github.com/expressjs/express). These dependencies need to be updated together.


Updates `qs` from 6.7.0 to 6.11.0
- [Release notes](https://github.com/ljharb/qs/releases)
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.7.0...v6.11.0)

Updates `express` from 4.17.1 to 4.18.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.17.1...4.18.2)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: indirect
- dependency-name: express
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-07 09:58:10 +00:00
src Add db 2019-08-22 17:43:56 +02:00
.babelrc Setup Project 2019-08-15 22:48:54 +02:00
.editorconfig Setup Project 2019-08-15 22:48:54 +02:00
.env.sample edit .env.sample 2019-09-05 19:07:57 +02:00
.eslintrc.js Setup Project 2019-08-15 22:48:54 +02:00
.gitignore edit .gitignore 2019-08-15 23:21:20 +02:00
LICENSE Initial commit 2019-08-14 21:01:14 +02:00
README.md Edit username 2020-03-01 23:50:34 +01:00
package-lock.json Bump qs and express 2022-12-07 09:58:10 +00:00
package.json Bump qs and express 2022-12-07 09:58:10 +00:00

README.md

umbrello-api

Rest API for umbrello-bot.

The weather information is based on OpenWeatherMap API.

Technologies:

  • Node.js
  • express
  • mongodb

Installation

  1. Install Node.js and npm.
  2. Install mongodb.
  3. Clone this repository.
  4. Install dependencies with npm install
  5. Create env file or set environment variables. (read "Environment variables" paragraph)
  6. Configure the list of city id (read "OpenWeatherMap - List Of City ID")
  7. Build with npm run build.
  8. Start the server with npm run serve.

Environment Variables.

OWM_TOKEN=your-open-weather-map-token-api
OWM_LANG=en
OWM_UNITS=metric

TELEGRAM_TOKEN=your-telegram-bot-token

DB_HOST=mongodb://host:port/db
DB_USER=user
DB_PASSWORD=password

OpenWeatherMap - List Of City ID

  1. Download city.list.min.json.gz
  2. Extract the json.
  3. Import the json into MongoDB (collection: umbrello_cities).

License

GPLv3


Made with ❤️ by Francesco Esposito (@franjsco)