{"id":19108629,"url":"https://github.com/balena-io-experimental/express-mongo-sample","last_synced_at":"2025-04-30T19:07:09.626Z","repository":{"id":44770700,"uuid":"206312332","full_name":"balena-io-experimental/express-mongo-sample","owner":"balena-io-experimental","description":"A sample project to illustrate running 32bit and 64bit applications running alongside on Raspberry Pi(3B+ or 4)","archived":false,"fork":false,"pushed_at":"2022-01-25T21:36:58.000Z","size":330,"stargazers_count":11,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T19:02:11.466Z","etag":null,"topics":["64bit","arm64","balena","data-logger","express","mongodb","raspberry-pi","raspberry-pi-4","vuejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/balena-io-experimental.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-04T12:19:19.000Z","updated_at":"2024-02-23T14:36:05.000Z","dependencies_parsed_at":"2022-08-28T18:01:22.518Z","dependency_job_id":null,"html_url":"https://github.com/balena-io-experimental/express-mongo-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balena-io-experimental%2Fexpress-mongo-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balena-io-experimental%2Fexpress-mongo-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balena-io-experimental%2Fexpress-mongo-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balena-io-experimental%2Fexpress-mongo-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/balena-io-experimental","download_url":"https://codeload.github.com/balena-io-experimental/express-mongo-sample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251767210,"owners_count":21640468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["64bit","arm64","balena","data-logger","express","mongodb","raspberry-pi","raspberry-pi-4","vuejs"],"created_at":"2024-11-09T04:17:06.321Z","updated_at":"2025-04-30T19:07:09.585Z","avatar_url":"https://github.com/balena-io-experimental.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://github.com/balena-io-playground/express-mongo-sample/blob/master/assets/header.png?raw=true)\n\n# Express and MongoDB example project\n\nTo demonstrate the use of a 64-bit container, we’ve developed a sample multi-container project that uses a few different technologies. The main idea is to plot a live chart containing the temperature and humidity of any city in the world. \n\n### What you will need:\n- A download of the project from [GitHub](https://github.com/balena-io-playground/express-mongo-sample)\n- Software to flash an SD card ([balenaEtcher](https://balena.io/etcher))\n- A free [balenaCloud](https://balena.io/cloud) account to setup and manage the Pi Download and install the [balena CLI tools](https://github.com/balena-io/balena-cli/blob/master/INSTALL.md) - to be installed on your computer, allowing you to install the project code on the Raspberry Pi 4.\n\nYou will also need to [set up environment variables](https://www.balena.io/docs/learn/manage/serv-vars/#environment-and-service-variables) from the balena dashboard:\n\n| Name             | Value  \n| -----------------|------------------------------------                                   \n| CITY_LATLNG     | The code corresponding to the latitude and longitude of the desired city comma separated. Ex: `38.722252,-9.139337`.\n| API_KEY | [api key](https://darksky.net/dev) retrieved after signing up at `https://darksky.net`|\n| FREQ | Frequency(in minutes) with which to retrieve weather data. |                                   \n                    \n\n\u003e To get the Lat \u0026 Long for your city, you can use [latlong.net](https://www.latlong.net/) and type the name of the desired city, such as Lisbon or London. On the `environment variable`, just combine both information comma separated such as  `38.722252,-9.139337`.\n\n### About the project:\n\nThe project is divided into three containers:\n* A mongoDB database instance with persistent storage, in which we will store all data. \n* A Python 3 application that fetches the weather information from the [Dark Sky](https://darksky.net/dev) API and saves it to the database every minute. \n* Node.js, ExpressJS, and VueJS application that fetches the data from the mongo database and displays it in a chart, which is refreshed automatically every minute.\n\n![](https://github.com/balena-io-playground/express-mongo-sample/blob/master/assets/body.png?raw=true)\n\n\u003e Note, the express app is based on https://zellwk.com/blog/crud-express-mongodb/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalena-io-experimental%2Fexpress-mongo-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbalena-io-experimental%2Fexpress-mongo-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalena-io-experimental%2Fexpress-mongo-sample/lists"}