Simple weather data dashboard using Open Weather API.
- git
- node 12
- npm 6.14
- docker 19 (If you're going to run mongodb locally)
- Open Weather API Key. In order to get this, you need to sign up, then go to https://home.openweathermap.org/api_keys and you'll see the generated API key.
docker pull mongo:4.0.4
docker run -d -p 27017-27019:27017-27019 --name mongodb mongo:4.0.4
git clone [email protected]:scdekov/weather-dashboard.git
cd weather-dashboard
npm install
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 defaultAPP_SECRET
- used for signing cookies, "dev" is the defaultNODE_ENV
- "dev" is defaultFRONT_END_ORIGIN
- "http://localhost:8080" is the defaultMONGO_HOST
- "localhost" is the defaultMONGO_PORT
- "27017" is the defaultOWM_API_KEY
- your api key for the Open Weather API
npm run test
npm run apidev
npm run app
or with a single command
npm run apidev & npm run app