Skip to content

Simple weather data dashboard using Open Weather API.

Notifications You must be signed in to change notification settings

scdekov/weather-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather Dashboard

Simple weather data dashboard using Open Weather API.


Requirements

Setup MongoDB

docker pull mongo:4.0.4
docker run -d -p 27017-27019:27017-27019 --name mongodb mongo:4.0.4

Setup API and Front-end

git clone [email protected]:scdekov/weather-dashboard.git
cd weather-dashboard
npm install

Create .env file

cp .env.sample .env
sed -i 's/owmapikey/<your-owm-api-key>/g' .env

In this file you can configure variables used in the app:

  • ADMIN_PASSWORD - "admin" is the default
  • APP_SECRET - used for signing cookies, "dev" is the default
  • NODE_ENV - "dev" is default
  • FRONT_END_ORIGIN - "http://localhost:8080" is the default
  • MONGO_HOST - "localhost" is the default
  • MONGO_PORT - "27017" is the default
  • OWM_API_KEY - your api key for the Open Weather API

Run the tests

npm run test

Start API and Front-end on localhost

npm run apidev
npm run app

or with a single command

npm run apidev & npm run app

About

Simple weather data dashboard using Open Weather API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published